T402 API Reference - v2.8.0
    Preparing search index...

    Function getAgentIdentity

    • Resolve an agent's on-chain identity from the Identity Registry.

      Reads agentWallet, owner, and tokenURI from the contract.

      Parameters

      • client: ERC8004ReadClient

        Read-only client for contract calls

      • identityRegistry: `0x${string}`

        Identity Registry contract address

      • agentId: bigint

        Agent's NFT token ID

      • registryId: `${string}:${string}:${string}`

        Full agent registry identifier

      Returns Promise<AgentIdentity>

      Agent identity with wallet, owner, and URI