{"uid":"cap_y-ihTTlb_AkOrFr1Nqhg8","slug":"ethereum-json-rpc-via-x402-micropayment-3ed555c3","name":"Ethereum 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/v1/eth?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":["[]","[\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"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":"ethereum","result":"0x16a3f2b","jsonrpc":"2.0","chain_id":1,"upstream":"https://ethereum-rpc.publicnode.com","latency_ms":92}},"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_4aZhbc6s_6zKMhF3fR1Rp","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":"Proxies Ethereum JSON-RPC calls (eth_blockNumber, eth_getBalance, eth_call, etc.) paid per-call with USDC on Base via x402 — no API key required.","exampleAgentPrompt":"What's the current ETH balance of 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet? Use the pay-per-call RPC endpoint — no API key needed, just pay 0.002 USDC per call.","exampleUseCases":[{"title":"Check ETH balance before sending","prompt":"Before I send ETH, check the current balance of 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet using the x402 pay-per-call RPC — I don't have an Infura key handy."},{"title":"Read smart contract state on-chain","prompt":"Call the Ethereum RPC with eth_call to read the totalSupply of the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on mainnet — use eth_call with the right params and pay per call."},{"title":"Get latest Ethereum block number","prompt":"What's the latest Ethereum block number right now? Use the pay-per-call JSON-RPC proxy with eth_blockNumber — no API key, just USDC micropayment."}],"resultDescription":"A JSON-RPC 2.0 response object containing: id, jsonrpc version, chain name ('ethereum'), chain_id (1), the RPC result (e.g. hex block number or balance), upstream RPC URL used, and latency in milliseconds.","failureModes":["Payment not received or insufficient USDC — returns 402 Payment Required","Invalid JSON-RPC method name — upstream returns error object with code and message","Malformed params array (not valid URL-encoded JSON) — parse error from upstream","Upstream PublicNode unavailable — proxy may return 502 or timeout","Calling a write method (eth_sendRawTransaction) may be blocked or unsupported by this proxy"],"whenToPreferThis":"Choose this endpoint when your AI agent needs Ethereum mainnet JSON-RPC access without pre-provisioning an API key, especially in automated or agent-to-agent workflows where USDC micropayments via x402 are already in the stack. Ideal for one-off or low-volume on-chain reads (balances, block height, contract calls) where per-call billing is more economical than a monthly RPC subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:22.215Z","isFirstParty":false,"canonicalSlug":"ethereum-json-rpc-via-x402-micropayment-3ed555c3"}