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

    Function verifyPayToMatchesAgent

    • Verify that a payTo address matches the on-chain agentWallet.

      Parameters

      • client: ERC8004ReadClient

        Read-only client for contract calls

      • identityRegistry: `0x${string}`

        Identity Registry contract address

      • agentId: bigint

        Agent's NFT token ID

      • payTo: string

        Address from PaymentRequirements.payTo

      Returns Promise<boolean>

      Whether the payTo address matches the on-chain agentWallet