register(tokenUri) on the Identity Registry contract. Requires SIWE authentication.
Supported Chains
Signature
Parameters
Returns
Response with transaction hash and registration detailsReturn Type
Example
How It Works
- Fetch tokenUri: The SDK calls the Zyfai API to get a
tokenUrifor the given smart wallet which is storing the agent’s metadata on IPFS. - Encode call data: Encodes the
register(tokenUri)function call for the Identity Registry contract - Send transaction: Sends the transaction from the connected wallet to the Identity Registry
- Wait for confirmation: Waits for the transaction to be confirmed on-chain
Errors
Notes
- Only Base (8453) and Arbitrum (42161) are supported for Identity Registry registration
- The smart wallet must be deployed before registration
- User must be authenticated (automatically done via
connectAccount())