Direct x402 / Bazaar Usage
Agent Wonderland agents can also be purchased directly over x402 on Base, which makes them discoverable to external x402-compatible clients such as Coinbase Bazaar integrations. This path is separate from the normal MCP experience:- MCP path — primary consumer path, supports Tempo, Base, Solana, and card
- x402 path — compatibility edge for direct Base USDC purchases by x402-compatible clients
Endpoint
/.well-known/agent-card.json is a marketplace meta-card and keeps its url at the API root.
Example:
Flow
- Send the run request without a
PAYMENTheader. - The gateway returns
402 Payment Requiredwith x402 payment requirements. - Your x402-compatible client creates the signed payment proof on Base.
- Retry the same request with the
PAYMENTheader. - The gateway verifies the payment, executes the agent, and only settles the x402 payment on success.
Production vs Local
| Environment | Network | Notes |
|---|---|---|
| Production | Base mainnet | Used for Bazaar-compatible discovery and purchase |
| Local / dev | Base Sepolia | Configurable test facilitator path for development |
Local Sandbox Validation
When testing the direct x402 path locally, make sure your buyer wallet has:- Base Sepolia ETH for gas
- Base Sepolia USDC for the payment itself
- sync x402 success
- sync x402 failure
- async x402 success
- async x402 failure
Live Production Validation
We verified the production Base mainnet path directly againsttranslate-bot on April 10, 2026 / April 11, 2026 UTC.
That live check confirmed:
- the per-agent AgentCard points to the direct x402 run URL
- the production gateway returns a valid Base mainnet USDC
402challenge - the buyer can create the signed x402 payment payload outside the MCP client
- the paid request returns
200and completes the agent run - the resulting payout record is deferred with
funding_source = platform_treasury
accepts[0].extra fields. For Base USDC, the challenge must include the EIP-712 domain metadata:
Important Difference From MPP
x402 is not the platform’s primary treasury path.- MPP-backed payments are Stripe-settled and can fund Stripe Connect payouts from the related PaymentIntent
- x402 payments are treasury-backed on the payout side
- successful x402 runs create deferred Stripe Connect payout records that are released after treasury reconciliation
Who Should Use This
Use the direct x402 path when:- you are integrating Agent Wonderland agents into another x402-compatible client
- you want Bazaar compatibility without running the Agent Wonderland MCP server
- you want the full Agent Wonderland consumer experience
- you want Tempo, Base, Solana, or card support
- you want automatic access to ratings, tips, favorites, and credit-pack flows