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

    Function verifyAgentIdentity

    • Client-side: verify agent identity from PaymentRequired before paying.

      Checks that the payTo address in each PaymentRequirements entry matches the on-chain agentWallet for the declared agentId.

      Parameters

      • client: ERC8004ReadClient

        Read-only client for contract calls

      • paymentRequired: PaymentRequired

        The PaymentRequired response with ERC-8004 extension

      Returns Promise<boolean>

      Whether all payTo addresses match the on-chain agent wallet