Skip to main content

What is x402?

x402 is an open payment protocol developed by Coinbase that revives the long-reserved HTTP 402 Payment Required status code. It enables AI agents and services to pay for API access autonomously using USDC on Base — no accounts, sessions, or human intervention required.

Payment flow

1

Agent sends request

Your agent or app sends a normal HTTP POST to a paid endpoint. No auth header needed.
2

Server returns 402

PropX402 responds with 402 Payment Required plus a payment payload specifying the USDC amount and Base network address.
3

Agent pays and retries

The x402 client signs and broadcasts a USDC transfer on Base mainnet, then retries the request with a payment proof header.
4

Server verifies and responds

PropX402 verifies the on-chain payment and returns the full data response.

Why x402?

Traditional APIPropX402 (x402)
AuthAPI keys, OAuthNone required
BillingSubscriptions, invoicesPay per query
SettlementDays~200ms on Base
AgentsManual setupFully autonomous
ChargebacksYesNot reversible

Requirements

  • EVM wallet on Base mainnet (Coinbase Wallet, MetaMask, or any Base-compatible wallet)
  • USDC balance on Base — bridge at bridge.base.org or buy directly
  • x402-compatible HTTP client — x402 SDK on GitHub

Payment receiver

All PropX402 payments settle directly to this address. No intermediaries.
0xCFA4F055621356974dFA4846a6e0047f593C4dDA

Facilitator

https://x402.org/facilitator

Installation

npm install x402-fetch
Learn more about the x402 protocol at x402.org or read the Coinbase x402 whitepaper.