How a call is paid
- Call a paid route. It answers HTTP 402 with the price in the
PAYMENT-REQUIREDheader. - Sign a USDC payment for that amount with any x402 client.
- Call again with the
PAYMENT-SIGNATUREheader. The answer comes back with a receipt.
Test and real USDC
Each chain moves from its test network to real USDC on its own; the line above is read live from the API.
When a call fails
Bad input is rejected before any payment, and a call that fails is never charged. A token address sent where a wallet was expected gets HTTP 422 with code token_address, and for a NEAR token, its grade.