{"uid":"cap_wfqivGhncqyx7uOCZbDJ0","slug":"47620-polygon-block-api-2c7a8410","name":"47620 Polygon Block 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/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 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_7tbClytFaXxP3pxXIZfaq","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 a Polygon blockchain block by number or 'latest', including hash, timestamp, transaction count, gas used, and base fee.","exampleAgentPrompt":"What does the latest Polygon block look like — can you pull the hash, timestamp, transaction count, gas used, and base fee right now?","exampleUseCases":[{"title":"Monitor Polygon network congestion","prompt":"Check the latest Polygon block and tell me the gas used and base fee so I can gauge how congested the network is right now."},{"title":"Track on-chain activity in real time","prompt":"Pull the latest Polygon block details — I want to see the transaction count and timestamp to track how active the network is at this moment."},{"title":"Verify a specific block's metadata","prompt":"Look up Polygon block number 58000000 and give me its hash, timestamp, and base fee so I can verify it matches what I have on record."}],"resultDescription":"Returns a JSON object with ok (boolean) and the block details including block hash, timestamp (unix), transaction count, gas used, and base fee per gas for the specified Polygon block number or 'latest'. Optional 'fields' query param can filter the response to specific top-level keys.","failureModes":["Invalid or non-existent block number returns an error or empty result","Network issues fetching from Polygon RPC may cause timeouts","Payment not processed (x402 protocol failure) results in 402 response","Requesting a future block number returns not-found error","Malformed 'fields' filter silently ignored or causes partial response"],"whenToPreferThis":"Use this endpoint when you need lightweight, fast Polygon block header data — hash, timestamp, tx count, gas used, and base fee — without fetching full transaction details. Ideal for monitoring, dashboards, or verification tasks on the Polygon network specifically. Prefer over full-node RPC calls when you want a simple pay-per-call HTTP API without running infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:42:00.155Z","isFirstParty":false,"canonicalSlug":"47620-polygon-block-api-2c7a8410"}