{"uid":"cap_cY1XRSZV6ehsipkJ-VuNE","slug":"onesource-ethereum-block-lookup-rpc-abefdcd1","name":"OneSource Ethereum Block Lookup RPC","description":"Two data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.","url":"https://api.onesource.io/api/chain/block/%7Bnumber%7D","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","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","required":["number"],"properties":{"number":{"oneOf":[{"enum":["latest","pending","earliest","safe","finalized"],"type":"string"},{"type":"string","pattern":"^(0[xX][a-fA-F0-9]+|[0-9]+)$"}]}}},"queryParams":{"type":"object","properties":{"network":{"enum":["ethereum","sepolia","robinhood"],"type":"string","default":"ethereum"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","properties":{"result":{"type":["object","null"],"properties":{"hash":{"type":"string"},"number":{"type":"string"},"gasUsed":{"type":"string"},"gasLimit":{"type":"string"},"timestamp":{"type":"string"},"parentHash":{"type":"string"},"transactions":{"type":"array","items":{"type":"string"}}}}},"description":"Endpoint-specific response payload"},"meta":{"type":"object","required":["endpoint","request_id"],"properties":{"endpoint":{"type":"string"},"cost_usdc":{"type":"string"},"request_id":{"type":"string"},"payment_chain":{"type":"string"},"payment_token":{"type":"string"}}},"error":{"type":["object","null"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}}}},"responseSchema":{"type":"json","example":{"data":{"result":{"hash":"0x3f5f8b0a8e9b7c6d4f2a1b5e8c9d7a3f6e4b9d1c5a8f2e7b4d6c3a9e1f0b8d5c","number":"0x133da1e","gasUsed":"0xe4e1c0","gasLimit":"0x1c9c380","timestamp":"0x6567c8e0","parentHash":"0x3f5f8b0a8e9b7c6d4f2a1b5e8c9d7a3f6e4b9d1c5a8f2e7b4d6c3a9e1f0b8d5b","transactions":["0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f"]}},"meta":{"endpoint":"/api/chain/block/{number}","cost_usdc":"0.001","request_id":"00000000abcdef01","payment_chain":"base","payment_token":"USDC"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cjiKe-NOoON3-8JaySkdo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches on-chain block data (hash, number, gas used, timestamp, parent hash) for a given block number or tag on Ethereum mainnet or Sepolia testnet","exampleAgentPrompt":"What are the details for Ethereum mainnet block number 20,000,000 — give me the hash, gas used, timestamp, and parent hash?","exampleUseCases":null,"resultDescription":"A JSON object with the block's hash, hex-encoded block number, gas used, gas limit, Unix timestamp (hex), and parent block hash for the requested Ethereum or Sepolia block.","failureModes":["Block number out of range or not yet mined — returns error or null","Invalid block tag string — returns 400 or error body","Network parameter not recognized — defaults to ethereum or returns error","Block pending and not yet available — may return empty/null fields","Payment not included or insufficient — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need fast, pay-per-call access to raw Ethereum block metadata (hash, gas, timestamp) on mainnet or Sepolia without managing API keys. Prefer it over self-hosted RPC when you want micropayment-based access via x402/USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:30:22.421Z","isFirstParty":false}