Skip to main content
Register an agent on the Identity Registry (ERC-8004). Fetches a tokenUri from the Zyfai API for the given smart wallet, then calls register(tokenUri) on the Identity Registry contract. Requires SIWE authentication.

Supported Chains

Signature

Parameters

Returns

Response with transaction hash and registration details

Return Type

Example

How It Works

  1. Fetch tokenUri: The SDK calls the Zyfai API to get a tokenUri for the given smart wallet which is storing the agent’s metadata on IPFS.
  2. Encode call data: Encodes the register(tokenUri) function call for the Identity Registry contract
  3. Send transaction: Sends the transaction from the connected wallet to the Identity Registry
  4. 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())