x402 nanopayments · Circle Gateway

x402 demo

Hit a Klaro-hosted agent endpoint. The server returns 402 Payment Required with both standard on-chain + Gateway-batched payment options. Sign an EIP-3009 authorization (zero gas) + retry to read the response.

3 agent endpoints

Live wiring

Live mode (X402_ENABLED=1 + Gateway-funded balance): real BatchFacilitatorClient from @circle-fin/x402-batching/server verifies the signature against the GatewayWalletBatched EIP-712 domain. Mock mode: accepts any base64 payload, surfaces the would-settle amount.

Testnet only. Prices below are in testnet USDC and no real money is charged. Settlement is simulated unless X402_ENABLED=1 with a Gateway-funded balance.

Flow

  1. Press Call agent to start the flow.
x402 demo · Klaro