Skip to main content

onchainid.issueRoleClaim(IssueRoleClaim)

Generate and sign a Role claim (Machine Regulator or Machine Issuer) for an ONCHAINID identity. This does not broadcast a transaction; it returns the encoded claim payload and the issuer’s signature that can be submitted or verified off-chain/on-chain by downstream contracts.

IssueRoleClaim Type Parameters

Returns

Usage

TypeScript

JavaScript

Example outputs

roleDescription is ABI-encoded into the claim data, and roleTopic becomes the claim topic. The claim only validates where your ClaimIssuer contract is a trusted issuer for that topic.