{"uid":"cap_7g4fmOvSaKdJ-AHm3XMTx","slug":"chainray-online-23409879","name":"ChainRay Block Info","description":"The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.","url":"https://chainray.online/block-info","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":{"chain":{"type":"string","description":"Blockchain network (e.g., base, ethereum, polygon)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"chain":"ethereum"}}},"response":{"hash":"0x59d6826993faa14898c126d9bb7172882bec49d702963934d5c0efeef8af05cb","size":105546,"chain":"ethereum","miner":"0x3b83f04529c1b32f4af12de1fb3d916eca0e741c","_proof":{"chain":"ethereum","dataHash":"9c196d128e02f629cf0efb3eaac922df0c861c43296a122bf602aebcb70ccbb0","blockHash":"0x59d6826993faa14898c126d9bb7172882bec49d702963934d5c0efeef8af05cb","chainName":"Ethereum","blockNumber":25349144,"proofVersion":"3.0","blockTimestamp":1781842271,"proofTimestamp":1781842281252},"number":25349144,"gasUsed":"10788789","gasLimit":"60000000","fetchedAt":1781842281198,"timestamp":1781842271,"parentHash":"0xf56d97b08761a5d863f9618448979b99e64212c88fa90c88dfc17dee5641de3f","timestampISO":"2026-06-19T04:11:11.000Z","baseFeePerGas":"217060939","transactionCount":112}},"exampleRequest":{"chain":"ethereum"},"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nxvuCNqtyRxfsvEr2k2AG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves detailed blockchain block metadata including height, timestamp, transaction count, miner address, gas usage, and proof data for a specified chain.","exampleAgentPrompt":"Can you pull the latest block info for the Ethereum chain — I want to see the block number, timestamp, miner address, transaction count, and gas usage?","exampleUseCases":[{"title":"Real-time gas spike monitoring","prompt":"Watch the latest blocks on Ethereum and alert me whenever the gas used jumps above 20 million — I need to know right away so I can adjust my transaction strategy."},{"title":"Track who's mining on Base","prompt":"Pull the current block data on the Base chain and tell me the miner address and how many transactions are in the most recent block — I'm trying to understand mining patterns there."},{"title":"Monitor cross-chain block activity","prompt":"Check the latest block info across Ethereum, Polygon, and Base all at once — give me the timestamps and transaction counts so I can see which chain is busiest right now."}],"resultDescription":"Returns a JSON object containing the block hash, block number, timestamp (Unix and ISO), miner address, gas used, gas limit, base fee per gas, parent hash, block size, transaction count, and a cryptographic proof object with chain name, data hash, and proof version.","failureModes":["Unsupported chain name returns an error or empty response","Missing 'chain' query parameter may default to a chain or return an error","Payment failure (402) if USDC balance is insufficient","Network timeout if the blockchain RPC is slow","Invalid chain identifier returns a 400 or descriptive error"],"whenToPreferThis":"Use this endpoint when you need real-time or near-real-time block metadata from a supported EVM chain (e.g., Base, Ethereum, Polygon) including miner info, gas stats, and cryptographic proof. Prefer this over raw RPC calls when you want a pre-parsed, proof-attested response without managing your own node or RPC provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:59:33.985Z","isFirstParty":false}