The problem
Traditional payment flows — credit cards, invoices, subscription billing — require human identity, legal agreements, and manual onboarding. They work for people, but they break for machines. AI agents can’t get credit cards. Automated pipelines can’t sign contracts. And micropayments under 0.30.HTTP 402: Payment Required
HTTP has had a status code for this since 1997: 402 Payment Required. It was reserved “for future use” — and the future is now. The x402 protocol defines a standard way to use 402 responses for real payments:- Client requests a resource
- Server responds with
402and apayment-requiredheader describing the price, network, and payment address - Client signs a USDC transfer authorization (no on-chain transaction yet)
- Client retries the request with the signed payment in the
X-PAYMENTheader - Facilitator verifies the signature, submits the transaction on-chain, and confirms settlement
- Server returns the resource
What is a facilitator?
The facilitator is the settlement engine. It:- Verifies that the signed payment is valid (correct amount, correct recipient, sufficient balance)
- Settles the payment on-chain by submitting the transaction to the network
- Returns the transaction hash and settlement confirmation
Supported networks
| Network | CAIP-2 ID | Status |
|---|---|---|
| Base (mainnet) | eip155:8453 | Production |
| Base Sepolia (testnet) | eip155:84532 | Sandbox / Testing |
| Solana (mainnet) | solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | Production |
| Solana Devnet | solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 | Sandbox / Testing |
Learn more
- x402 Protocol Specification
- Getting Started — try it in 2 minutes