{"uid":"cap_snR5frYAD4MM9M_Nh0u7C","slug":"base-chain-json-rpc-via-x402-micropayment-6add0457","name":"Base Chain JSON-RPC via x402 Micropayment","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/v1/rpc/base?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"method":{"type":"string","examples":["eth_blockNumber","eth_getBalance","eth_call"],"description":"JSON-RPC method (default eth_blockNumber)"},"params":{"type":"string","examples":["[]","[\"0xe4be4d0bd82d8e68203deff81f79ede0529f2617\",\"latest\"]"],"description":"URL-encoded JSON array of params (default [])"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":1,"chain":"base","result":"0x32c8f1a","jsonrpc":"2.0","chain_id":8453,"upstream":"https://base.drpc.org","latency_ms":84}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Q-HlQHRZWLIBKJEyYV6m","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Execute JSON-RPC calls against the Base (L2) blockchain, paying $0.002 USDC per call via the x402 protocol — no API key required.","exampleAgentPrompt":"Check the current ETH balance of wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base using eth_getBalance — pay per call, no API key needed.","exampleUseCases":[{"title":"Live wallet balance check on Base","prompt":"What's the current ETH balance of 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base? Use eth_getBalance with the 'latest' block tag."},{"title":"Current block number for timing trades","prompt":"What's the latest block number on Base right now? I need it to time my onchain transaction correctly."},{"title":"Smart contract read call on Base","prompt":"Call eth_call on Base for contract 0xabc123… with these params to read the current price from a DeFi contract — use the latest block."}],"resultDescription":"A JSON-RPC 2.0 response object containing: the method result (e.g. hex block number, hex balance, or eth_call return data), chain identifier ('base'), chain_id (8453), upstream RPC URL used, and round-trip latency in milliseconds.","failureModes":["Payment not included or insufficient USDC via x402 → 402 Payment Required response","Invalid JSON-RPC method name → JSON-RPC error with code -32601","Malformed params array (not valid URL-encoded JSON) → parse error or JSON-RPC -32602","Contract call reverts → JSON-RPC execution error -32000","Upstream RPC (drpc.org) timeout or outage → 503 or timeout error","Address not checksummed correctly → may return zero balance or error depending on method"],"whenToPreferThis":"Choose this endpoint when your AI agent needs trustless, key-free access to Base chain RPC calls and can pay per-use in USDC via x402. Ideal for autonomous trading or onchain agents that need real-time blockchain state (balances, block number, contract reads) without provisioning API keys or committing to a subscription. Prefer over alternatives when operating on Base L2 specifically and when the x402 micropayment model fits your agent's wallet infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:16.736Z","isFirstParty":false,"canonicalSlug":"base-chain-json-rpc-via-x402-micropayment-6add0457"}