Skip to main content

onchainid.getClaim(GetClaim)

Fetch a claim from an ONCHAINID identity by claimId. This is a read-only call to the identity contract.

GetClaim Type Parameters

Note: The claimId is derived from the issuer contract address and the claim topic to uniquely identify a claim on an identity. In Solidity this is keccak256(abi.encode(_issuer, _topic)). In ethers you can compute it via keccak256(new AbiCoder().encode(["address","uint256"], [issuer, topic])).

Returns

Usage

TypeScript

JavaScript

Example outputs