x402 Compatibility
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
- Agent requests a resource:
GET /api/premium-data - Server responds:
402 Payment Requiredwith a payment header - Agent's wallet signs a USDC payment on Base or Solana
- Agent retries with payment proof in the header
- 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.