Skip to content
SpendTheBits

Topic · 2 insights · 2 how-tos

x402 Payments: How AI Agents Pay in USDC

x402 is an open protocol that turns HTTP's long-unused 402 Payment Required status into a way to pay for a web resource. A server answers an unpaid request with 402 and a price; the client, often an AI agent, signs a USDC authorization and retries; a facilitator settles the payment on-chain and the server returns the resource.

In SpendTheBits your @handle is an x402 seller. You publish a priced resource, agents pay it in USDC, and each settled call lands in your wallet as an ordinary inbound transaction. The same app can also pay x402 resources on your behalf. We measured our first live exchange at 1.4 seconds from the 402 to settled USDC on Base.

  • Payment token: USDC, signed with EIP-3009 transferWithAuthorization, so the payer needs no gas.
  • Seller URLs: x402.spendthebits.com/@handle/slug/.
  • Discovery: /.well-known/x402, /llms.txt and /openapi.json list public resources.
  • Settlement: through a facilitator (Coinbase CDP; Circle for Arc).