Practice x402 for Free
Full x402 environment on Base Sepolia testnet. Fake USDC, 5 test services, earn badges. No real money needed.
Testnet Configuration
Network
Base Sepolia (Chain ID: 84532)
USDC Contract
0x036CbD53842c5426634e7929541eC2318f3dCF7e
Sandbox Proxy
/api/v1/sandbox/proxy/[slug]
Get Testnet ETH
Coinbase Faucet5 Test Services
Each service tests a different aspect of the x402 protocol. Complete them all to earn badges.
Echo Service
/sandbox-echoBasic x402 flow — send data, get it back
Tests: Payment flow, header signing, response parsing
Weather Service
/sandbox-weatherSchema validation — typed input/output
Tests: Input schema, output parsing, content types
Session Service
/sandbox-sessionSession passes — pay once, call many
Tests: Session token purchase, reuse, expiry handling
Slow Service
/sandbox-slowTimeout handling — 2-5 second responses
Tests: Timeout configuration, retry logic, patience
Error Service
/sandbox-errorError handling — random 4xx/5xx responses
Tests: Error parsing, refund detection, graceful fallback
Quick Start
Test the sandbox echo service right now:
# 1. Call without payment → get 402 curl https://402bazaar.com/api/v1/sandbox/proxy/sandbox-echo # 2. Sign testnet USDC and call with payment curl https://402bazaar.com/api/v1/sandbox/proxy/sandbox-echo \ -H "X-PAYMENT: <your-signed-payment>" # → 200 OK + echo response + badge earned!
Sandbox Badges
Earn badges by completing sandbox challenges. Badges display on your mainnet profile. Connect your wallet to track progress.
First 402
Received your first 402 Payment Required response
First Payment
Completed your first x402 payment
Weather Check
Called the sandbox-weather service with schema validation
Session Master
Purchased and used a session pass
Timeout Handler
Handled a slow response from sandbox-slow
Error Handler
Gracefully handled errors from sandbox-error
Interactive Playground
Test the x402 flow in your browser. Connect your wallet, pick a test service, and see the payment flow in real-time.
Open Playground