Skip to main content

onchainid.addClaimToIdentity(AddClaimToIdentity)

Add a signed claim to an ONCHAINID identity (calls the identity contract’s addClaim).

AddClaimToIdentity Type Parameters

Returns

Usage

TypeScript

JavaScript

Example outputs

The SDK simulates the call first. If claimSignature does not match the claim payload and issuer, or identityController does not control subjectIdentity, it throws SIMULATE/ADD_CLAIM and sends no transaction.