What is x402?
The HTTP payment protocol that enables machine-to-machine commerce.
What is x402?
x402 is an HTTP payment protocol that enables any client to pay any server for access to resources - no API keys, no subscriptions, no signup required.
The name comes from HTTP 402 Payment Required - a status code that was reserved in HTTP/1.1 but never standardized. x402 finally gives it meaning.
How It Works
1. Client Requests a Resource
2. Server Responds with Payment Requirements
3. Client Creates and Signs Payment
The client builds a transaction that transfers USDC to the seller, then signs it.
4. Client Sends Payment Header
5. Server Verifies, Settles, and Responds
The server calls the facilitator to verify and settle the payment, then returns the data.
Why x402?
vs. API Keys
| Feature | API Keys | x402 |
|---|---|---|
| Signup required | Yes | No |
| Email verification | Yes | No |
| Rate limits | Complex tiers | Pay for what you use |
| Billing | Monthly invoices | Instant, per-request |
| AI agent friendly | No | Yes |
vs. Traditional Payments
| Feature | Stripe/PayPal | x402 |
|---|---|---|
| Minimum transaction | ~$0.30 fee floor | Fractions of a cent |
| Settlement time | 2-7 days | Seconds |
| Chargebacks | Risk | Impossible |
| Global access | Varies by country | Permissionless |
The Role of the Facilitator
The Facilitator is the middleware that makes x402 practical:
- Verifies payments - Checks transaction validity and policy compliance
- Sponsors fees - Pays transaction fees so buyers don't need native tokens
- Settles on-chain - Signs and broadcasts transactions to the blockchain
The Dexter Facilitator supports Solana and Base, with cross-chain bridging between them. Without a facilitator, every API would need to implement its own blockchain integration.
Learn more about the Facilitator →
Resources
- x402 Specification - Original Coinbase spec
- Dexter Facilitator - Our implementation
- For Sellers - How to accept x402 payments
- For Buyers - How to make x402 payments

What is x402?