{"uid":"cap_HUoUiVuE7SeIWOC1n1uSo","slug":"blockchain-block-header-lookup-2aa2e480","name":"Blockchain Block Header Lookup","description":"Latest (or specific) block header, decoded","url":"https://santyvv-x402.santyvv1993.workers.dev/api/chain/block?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"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_HOXPEriga-w3nqUv0LduN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest or a specific decoded block header from a blockchain","exampleAgentPrompt":"What does the latest decoded block header look like on-chain right now — block number, timestamp, hash, and parent hash?","exampleUseCases":[{"title":"Monitor chain head in real time","prompt":"Keep checking the latest block header for me and tell me when a new block is mined — I want to see the block number and timestamp each time."},{"title":"Verify a specific block by number","prompt":"Can you pull the decoded block header for block 20000000 so I can confirm its hash and timestamp?"},{"title":"Sync blockchain state for DeFi dashboard","prompt":"Fetch the latest block header so I can display the current chain height and block time on my DeFi dashboard."}],"resultDescription":"A decoded block header object containing fields such as block number, block hash, parent hash, timestamp, miner/validator address, transaction root, and other standard EVM-compatible block metadata.","failureModes":["Invalid or non-existent block number returns a 404 or error response","Network or RPC node unavailability causes a 503 timeout","Malformed query parameters result in a 400 bad request","Payment not processed correctly results in a 402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call decoded block header without managing your own RPC node or API key. Ideal for lightweight agents that occasionally need chain head data or specific block metadata without committing to a full blockchain node subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:32:24.157Z","isFirstParty":false,"canonicalSlug":"blockchain-block-header-lookup-2aa2e480"}