Dial x402

x402 Overview

How the x402 payment protocol works with Dial.

x402 Payments

Dial uses the x402 protocol — an open standard that activates HTTP 402 "Payment Required" for machine-native crypto payments. Every paid Dial endpoint follows this flow.

Why x402?

  • No accounts — Your wallet is your identity
  • No API keys — Payment is the authorization
  • No KYC — Permissionless access
  • Instant settlement — ~1 second on Base
  • Gasless — The facilitator sponsors gas fees
  • Irreversible — Push payments, no chargebacks

Supported Configuration

SettingValue
Protocolx402 v2
Schemeexact (exact amount)
NetworkBase mainnet (eip155:8453)
TokenUSDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
Transfer MethodEIP-3009 transferWithAuthorization
FacilitatorOpenX402
Timeout300 seconds

Payment Headers (v2)

HeaderDirectionContent
Payment-RequiredServer → ClientBase64-encoded payment requirements
Payment-SignatureClient → ServerBase64-encoded signed payment
Payment-ResponseServer → ClientBase64-encoded settlement receipt

How Agents Pay

  1. Agent requests a resource — standard HTTP POST/GET
  2. Server returns 402 with Payment-Required header containing price, network, payTo address
  3. Agent selects payment option from the accepts array
  4. Agent signs EIP-3009 authorizationtransferWithAuthorization typed data
  5. Agent resubmits the same request with Payment-Signature header
  6. Facilitator verifies the signature, checks balance, validates parameters
  7. Server returns the resource with Payment-Response settlement receipt
  8. Facilitator settles on-chain — USDC moves directly from agent wallet to Dial

The agent never sends a transaction. It only signs an authorization. The facilitator executes the on-chain transfer. Funds move directly payer → recipient.

On this page