// vend402/demo — live on Base Sepolia
No wallet. No signup. Click the button — we sign a real USDC micro-payment on your behalf and settle it on-chain, then call the API and hand you back the response.
costs you $0 · pays 0.001 USDC · network: "base-sepolia"
# 1) Ask the API — you'll get an HTTP 402 with the price
curl -i https://vend402.com/api/x402/weather
# 2) Pay + call in one shot with the x402 client SDK
npx -y x402-fetch \
--url https://vend402.com/api/x402/weather \
--network base-sepolia \
--private-key $PRIVATE_KEY// or watch the handshake replay
Agent calls a paid API. No key, no account.
GET /v1/weather HTTP/1.1 Host: api.vend402.com
1. Your browser asked our server to fetch a paid API on your behalf.
2. The API responded with HTTP 402 Payment Required and a machine-readable price.
3. Our demo buyer wallet signed an EIP-3009 USDC authorization — no gas, no popup.
4. The x402 facilitator verified the signature and settled the transfer on Base Sepolia.
5. The API replied with the data. Total time: about a Base block.