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

    Function erc8004ServerIdentityCheck

    • Create a BeforeVerifyHook that verifies payTo matches the agent's on-chain agentWallet.

      Server-side counterpart to the client-side erc8004IdentityCheck. Ensures the payment recipient address in the accepted requirements matches the registered agent wallet.

      Parameters

      Returns BeforeVerifyHook

      BeforeVerifyHook for registration on t402ResourceServer

      server.onBeforeVerify(erc8004ServerIdentityCheck(viemClient));