ClaimTopicsResource
Access via urblock.claimTopics.
Manage required claim topics in the T-REX registry.
Methods
create(params)
Add a required claim topic.
const topic = await urblock.claimTopics.create({
topic: 1,
description: "KYC verification",
network: "polygon_amoy",
idempotency_key: "topic-001",
});
Returns: ClaimTopicResponse
list(params?)
List claim topics.
const topics = await urblock.claimTopics.list();
Returns: ListResponse<ClaimTopicListItem>
remove(topicId)
Remove a claim topic.
const tx = await urblock.claimTopics.remove(1);
Returns: TransactionShortResponse
getOnChain(params)
Get claim topics from the on-chain registry.
const result = await urblock.claimTopics.getOnChain({
registry_address: "0x...",
network: "polygon_amoy",
});
Returns: ClaimTopicsOnChainResponse