Skip to main content

x402 Compatibility

Coming Soon

x402 support is in development. Encrypto wallets will natively support the x402 protocol.

What is x402?

x402 is an open protocol by Coinbase that enables HTTP 402 payments — instant, programmatic payments over the web using USDC.

When a server returns HTTP 402 Payment Required, a x402-compatible client automatically pays the requested amount in USDC and retries the request. No invoices, no payment forms — just a standard HTTP flow.

How it works

  1. Agent requests a resource: GET /api/premium-data
  2. Server responds: 402 Payment Required with a payment header
  3. Agent's wallet signs a USDC payment on Base or Solana
  4. Agent retries with payment proof in the header
  5. Server verifies payment and returns the resource

All of this happens in one round-trip from the agent's perspective.

Why it matters for agents

x402 is the native payment protocol for the agent economy:

  • No API keys or subscriptions — pay per request, automatically
  • Works with any USDC wallet — including Encrypto agent wallets
  • Sub-second settlement — USDC on Base/Solana
  • Standard HTTP — no custom payment integrations needed

Encrypto + x402

Every Encrypto agent wallet holds USDC on Base — the same chain x402 uses. When x402 support is live:

  • Your agent can pay for any x402-enabled API automatically
  • Your agent can charge other agents for your own APIs
  • No configuration needed — your existing wallet just works

For API providers

If you're building APIs that agents consume, you'll be able to add x402 payment gates using the FastAPI SDK:

pip install "x402[fastapi]"

Stay tuned for integration guides.