{"uid":"cap_4lUPjqzriiOxwKl7_CU4d","slug":"ethereum-json-rpc-via-x402-micropayment-907b4167","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/api/v1/rpc/ethereum?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_axhmCsXBR58-6QF7TMzoy","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 wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet — use eth_getBalance with block tag 'latest'?","exampleUseCases":[{"title":"Live block height for trading bot","prompt":"What's the latest Ethereum block number right now? Call eth_blockNumber on mainnet so my trading strategy knows how fresh the chain data is."},{"title":"On-chain ETH balance check","prompt":"Check the ETH balance of 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet using eth_getBalance at the latest block."},{"title":"Smart contract read call","prompt":"Run an eth_call on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet to read its totalSupply — no API key, just pay per call."}],"resultDescription":"A JSON-RPC 2.0 response object containing: the method result (e.g. hex block number, balance in wei, or call return data), the chain name ('ethereum'), chain_id (1), the upstream RPC URL used, and the round-trip latency in milliseconds.","failureModes":["Invalid JSON-RPC method name returns an error result field","Malformed params array causes upstream RPC error","Payment not attached or insufficient USDC triggers 402 response","Rate limits or upstream publicnode outage returns 5xx","eth_call to non-existent contract may return 0x with no error"],"whenToPreferThis":"Choose this endpoint when you need Ethereum mainnet JSON-RPC access without provisioning an API key or committing to a subscription — ideal for AI agents that pay per-call in USDC via x402, or for low-frequency queries where a dedicated RPC plan is overkill. Prefer it over free public RPCs when you need reliable metered access billed automatically per request.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:29.846Z","isFirstParty":false,"canonicalSlug":"ethereum-json-rpc-via-x402-micropayment-3ed555c3"}