{"uid":"cap_BOJmWK-vY16hWQ3PIcW3A","slug":"47620-base-block-header-api-d635476f","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/0?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_z2Yad3dA-H-S2Nj8bDMFw","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 header and summary for a specific Base (Ethereum L2) block by block number or 'latest', including hash, timestamp, transaction count, gas used, and base fee.","exampleAgentPrompt":"Pull the block header for Base block number 21000000 — I need the hash, timestamp, transaction count, gas used, and base fee.","exampleUseCases":[{"title":"Monitor latest Base block activity","prompt":"What does the latest Base block look like right now? Give me the hash, when it was mined, how many transactions it has, and what the base fee is."},{"title":"Audit gas usage for a specific block","prompt":"I need to check gas used and the base fee for Base block 20500000 — can you pull that block's summary for me?"},{"title":"Track Base chain block timestamps","prompt":"Fetch the block header for Base block 19999999 — I want to know the exact timestamp and transaction count for that block."}],"resultDescription":"A JSON object containing the block header and summary for the requested Base chain block, including block hash, Unix timestamp, transaction count, gas used, and base fee in wei. Also includes an 'ok' boolean and endpoint identifier.","failureModes":["Invalid or non-existent block number returns an error or empty response","Block number beyond current chain head may return not-found error","Network issues with Base RPC may cause timeouts","Payment failure (x402) if USDC balance is insufficient — call returns 402 before data is served"],"whenToPreferThis":"Use this endpoint when you need lightweight, structured block-level metadata for the Base (Coinbase L2) network — specifically hash, timestamp, tx count, gas used, and base fee — without needing full transaction data. It's ideal for monitoring Base chain activity, auditing gas conditions, or timestamping events by block. Prefer this over full node RPC calls when you want a simple, metered HTTP API that accepts x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:54.551Z","isFirstParty":false,"canonicalSlug":"47620-base-block-header-api-d635476f"}