{"uid":"cap_Nu8C3FZjXGQhUI9ddhyht","slug":"crypto-microdata-for-agents-x402-ethereum-mainnet-rpc-513bd1ba","name":"Crypto Microdata for Agents (x402) — Ethereum Mainnet RPC","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/mainnet?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_mWGjg5jCzV1KKBtoKStHU","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":"Executes Ethereum mainnet JSON-RPC calls (balances, gas, eth_call, etc.) via pay-per-call x402 micropayments with no API key required","exampleAgentPrompt":"Check the current ETH balance of wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet using the eth_getBalance RPC method — pay the micro-fee in USDC, no API key needed.","exampleUseCases":[{"title":"Pre-trade wallet balance check","prompt":"Before my agent executes a trade, check the ETH balance of 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet so I know if it has enough funds — use eth_getBalance with block tag 'latest'."},{"title":"Smart contract state read","prompt":"Call eth_call on the Ethereum mainnet USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 to read the totalSupply — params should be the encoded function selector, no API key needed."},{"title":"Current block number monitoring","prompt":"What's the latest Ethereum mainnet block number right now? Just run eth_blockNumber with empty params and return the hex result."}],"resultDescription":"A JSON-RPC 2.0 response object containing: the method result (e.g. hex balance, hex block number, or call return data), the chain name ('ethereum'), chain_id (1), the upstream RPC URL used, and the latency in milliseconds.","failureModes":["Payment not provided or insufficient USDC via x402 — returns 402 Payment Required","Invalid JSON-RPC method name — upstream may return an error result field","Malformed params array (not valid URL-encoded JSON) — may cause upstream parse error","Upstream publicnode.com outage — elevated latency or 5xx response","Calling write methods (eth_sendRawTransaction) may not be supported on a GET endpoint"],"whenToPreferThis":"Choose this endpoint when your AI agent needs raw Ethereum mainnet JSON-RPC access without managing API keys or monthly subscriptions — ideal for autonomous agents that pay per-call in USDC via x402. Best for lightweight, read-only RPC calls (eth_getBalance, eth_blockNumber, eth_call) in DeFi trading or onchain automation contexts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:33:21.910Z","isFirstParty":false,"canonicalSlug":"crypto-microdata-for-agents-x402-ethereum-mainnet-rpc-513bd1ba"}