x402: HTTP Payments
Paywall any content or API behind a single HTTP header. Agents pay autonomously, humans pay seamlessly — no keys, no subscriptions, just cryptographic payments on Abstract.
What is x402?
x402 is an HTTP-native payment protocol that brings the 402 Payment Required status code to life. When a client requests a paid resource, the server responds with payment requirements. The client signs an EIP-3009 authorization, retries with the payment header, and the server settles the payment through a facilitator before returning the content.
Protocol Flow
Live Demo
x402 Headers
Payment-RequiredServer -> ClientSent with 402 response. Contains payment requirements including scheme, network, price, and payTo address.
Payment-SignatureClient -> ServerSent with retry request. Contains the signed EIP-3009 authorization payload proving the client has authorized the payment.
Payment-ResponseServer -> ClientSent with 200 response. Contains settlement confirmation including transaction hash and network.
Configuration
https://facilitator.x402.abs.xyz
eip155:11124
0xbd28bd5a3ef540d1582828ce2a1a657353008c61
0x86C3FA1c8d7dcDebAC1194531d080e6e6fF9afF5
0.01 USDC (10000 units, 6 decimals)