{"uid":"cap_I4oVVf_eMa-nBASYaCj9O","slug":"agent402-block-info-53d8b648","name":"Agent402 Block Info","description":"Header-level detail for one block on Ethereum, Base, Polygon, Arbitrum, or Optimism: hash, timestamp (unix + ISO), transaction count, gas used/limit, base fee. Pass a block number, 0x hex, or \"latest\". Keyless multi-endpoint failover. ?block=latest&network=base","url":"https://agent402.tools/api/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","required":[],"properties":{"block":{"type":"string","description":"Block number (decimal or 0x hex) or \"latest\" (default latest)."},"network":{"type":"string","description":"ethereum / base / polygon / arbitrum / optimism (default base)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["network","number","hash","timestamp","timestampIso","txCount","gasUsed","gasLimit","baseFeePerGas"],"properties":{"hash":{"type":"string"},"number":{"type":"integer"},"gasUsed":{"type":"string"},"network":{"type":"string"},"txCount":{"type":"integer"},"gasLimit":{"type":"string"},"timestamp":{"type":"integer"},"timestampIso":{"type":"string"},"baseFeePerGas":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"hash":"0x…","number":27000000,"gasUsed":"8123456","network":"base","txCount":142,"gasLimit":"180000000","timestamp":1753747200,"timestampIso":"2026-07-29T00:00:00.000Z","baseFeePerGas":"4100000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_RlvCIdHt8a4y_dEW3hlgB","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":"Fetches on-chain block metadata (hash, number, gas, timestamp, tx count) for a given block on Ethereum-compatible networks","exampleAgentPrompt":"What are the details for the latest block on Base — give me the block number, timestamp, transaction count, gas used, and base fee?","exampleUseCases":[{"title":"Monitor real-time Base chain activity","prompt":"What does the latest block on Base look like right now — block number, how many transactions, gas used, and the timestamp?"},{"title":"Audit historical Ethereum block gas fees","prompt":"Can you look up block 20000000 on Ethereum and tell me the base fee per gas, gas used, gas limit, and when it was mined?"},{"title":"Cross-chain block comparison for DeFi research","prompt":"Fetch the current latest block details from both Polygon and Arbitrum — I want to compare their gas limits and base fees side by side."}],"resultDescription":"Returns a JSON object with the block hash, block number, gas used, gas limit, transaction count, base fee per gas (in wei), Unix timestamp, ISO 8601 timestamp, and the network name for the requested block.","failureModes":["Invalid block number format returns an error (must be decimal, 0x hex, or 'latest')","Unsupported network name returns an error (only ethereum, base, polygon, arbitrum, optimism accepted)","Network RPC unavailable may return a timeout or upstream error","Block number higher than current chain head returns not-found or error","Payment failure (insufficient USDC balance or unsupported chain) results in HTTP 402 with payment details"],"whenToPreferThis":"Use this endpoint when you need lightweight, pay-per-call block metadata from EVM-compatible chains without setting up RPC infrastructure, managing API keys, or signing up for a service. Ideal for agents that need occasional block lookups across multiple chains (Base, Ethereum, Polygon, Arbitrum, Optimism) with micro-payments via USDC on Base or other supported chains. Prefer this over self-managed RPC nodes when simplicity, multi-chain coverage, and zero-signup access matter more than bulk throughput.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.892Z","isFirstParty":false}