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.