onchainid.issueKycClaim(IssueKycClaim)
Generate and sign a KYC claim 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.
IssueKycClaim Type Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| claimIssuerSigner | Signer | Required | Claim Issuer signer authorized to issue KYC 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 being KYCed. |
| name | string | Required | First name of the identity owner. |
| lastName | string | Required | Last name of the identity owner. |
| dateOfBirth | string | Required | Date of birth in ISO format YYYY-MM-DD. |
| placeOfBirth | string | Required | Place of birth. |
| uri | string | Optional | Optional URI pointing to KYC evidence/metadata. |
Returns
| Field | Type | Description |
|---|---|---|
| claim | IClaim | Encoded claim payload: { identity, issuer, topic, scheme, data, uri }. |
| signature | string | Signature over the claim by claimIssuer. |
Usage
TypeScript
JavaScript
Example outputs
topic and scheme are set according to the RWA KYC specification. Ensure your claimIssuer and issuerContract are recognized by your registry/verification flow for successful validation.
