{"uid":"cap_jRxP-sqaSVHp6V9a2UXFE","slug":"47620-polygon-block-header-api-ca685f55","name":"47620 Polygon Block Header API","description":"Header + summary for a polygon block by number (or \"latest\"): hash, timestamp, tx count, gas used and base fee.","url":"https://47620.xyz/x/polygon/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 polygon 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__ZKgRNvv7xQqGH-Cp3tHx","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":"Fetches block header and summary data for a Polygon network block by number or 'latest', returning hash, timestamp, transaction count, gas used, and base fee.","exampleAgentPrompt":"Can you look up the latest Polygon block and tell me the block hash, how many transactions it contains, the gas used, and the base fee?","exampleUseCases":[{"title":"Monitor Polygon network activity","prompt":"What does the latest Polygon block look like — give me the hash, timestamp, transaction count, gas used, and base fee so I can see how busy the network is right now."},{"title":"Audit specific Polygon block","prompt":"I need the full header summary for Polygon block number 58000000 — hash, timestamp, tx count, gas used, and base fee please."},{"title":"Track Polygon base fee over time","prompt":"Fetch the base fee and gas used for Polygon block 57999999 so I can track how gas prices are trending on the network."}],"resultDescription":"A JSON object containing a boolean 'ok' status plus block-level fields: block hash, timestamp, transaction count, total gas used, and base fee per gas for the requested Polygon block number.","failureModes":["Invalid or non-existent block number returns an error or empty result","Network timeout if Polygon RPC is slow or unavailable","Payment failure (402) if x402 payment is not attached or insufficient","Malformed block number string causes a bad request error","Field filter parameter references non-existent keys, returning empty filtered result"],"whenToPreferThis":"Choose this endpoint when you need lightweight Polygon block header data (hash, timestamp, tx count, gas used, base fee) on demand without running your own Polygon node. Ideal for agents that need to monitor network state, verify block finality, or track gas conditions on Polygon specifically — as opposed to Ethereum, Base, or Solana chains which have separate endpoints on the same platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:45.151Z","isFirstParty":false,"canonicalSlug":"47620-polygon-block-header-api-ca685f55"}