How x402 Works
The x402 protocol enables instant, micropayments for API requests using cryptocurrency.
- Send API request without payment
- Receive 402 Payment Required response with payment details
- Client automatically signs and submits USDC transaction on Base
- Client retries request with payment proof in X-PAYMENT header
- API verifies payment and returns data