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
| Parameter | Type | Required | Description |
|---|---|---|---|
| claimIssuerSigner | Signer | Required | Claim Issuer signer authorized to issue Role claims. Must be connected to a provider. |
| claimIssuerContract | string | Required | EVM address of the ClaimIssuer contract. |
| subjectIdentity | string | Required | ONCHAINID identity contract address of the subject. |
| roleTopic | number | Required | Role topic identifier. |
| roleDescription | string | Required | Human-readable role description. |
Returns
| Field | Type | Description |
|---|---|---|
| claim | IClaim | Encoded claim payload: { identity, issuer, topic, scheme, data, uri }. |
| signature | string | Signature over the claim by claimIssuerSigner. |
Usage
TypeScript
JavaScript
Example outputs
roleTopic and roleDescription are encoded into the claim data according to the RWA Role specification. Ensure your claimIssuerSigner and claimIssuerContract are recognized by your registry/verification flow for successful validation.
