{"uid":"cap_nJ1xcTNJ96OeAVjevQR_j","slug":"47620-base-block-header-api-010df6ca","name":"47620 Base Block Header API","description":"Header + summary for a base block by number (or \"latest\"): hash, timestamp, tx count, gas used and base fee.","url":"https://47620.xyz/x/base/block/latest?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"},"pathParams":{"type":"object","required":["number"],"properties":{"number":{"type":"string","description":"Header + summary for a base block by number (or \"latest\"): hash, timestamp, tx count, gas used and base fee."}},"additionalProperties":false},"queryParams":{"type":"object","properties":{"fields":{"type":"string","description":"Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["ok","endpoint"],"properties":{"ok":{"type":"boolean"},"endpoint":{"type":"string"}},"additionalProperties":true}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aqH8m63msseMxhogBmoEd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the block header and summary for the latest (or a specified) Base blockchain block, including hash, timestamp, transaction count, gas used, and base fee.","exampleAgentPrompt":"What does the latest Base blockchain block look like — give me the hash, timestamp, transaction count, gas used, and base fee.","exampleUseCases":[{"title":"Monitor Base block production rate","prompt":"Keep checking the latest Base block and tell me the timestamp and transaction count so I can see how fast blocks are being produced."},{"title":"Inspect specific Base block details","prompt":"Pull up the block header for Base block number 18500000 — I need the hash, gas used, and base fee."},{"title":"Track Base network gas fees","prompt":"What's the base fee on the most recent Base blockchain block right now?"}],"resultDescription":"A JSON object containing block header and summary fields for the requested Base block: block hash, timestamp, transaction count, gas used, and base fee per gas. Supports optional field filtering to return only selected keys.","failureModes":["Invalid or non-existent block number returns an error or empty result","Network congestion may cause stale or delayed latest block data","Malformed path parameter (non-numeric, non-'latest') may return a 400 error","Payment failure via x402 protocol results in 402 response and no data"],"whenToPreferThis":"Use this endpoint when you need lightweight block header data (hash, timestamp, tx count, gas used, base fee) for the Base L2 network specifically, especially for real-time monitoring or per-block lookups. Prefer over a full node RPC call when you want a simple REST interface with per-call micropayment pricing and no infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:36.022Z","isFirstParty":false,"canonicalSlug":"47620-base-block-header-api-d635476f"}