{"uid":"cap_I1MuD_KI2CQRcen94b2DU","slug":"beggar-bot-block-by-time-lookup-f4fff731","name":"Beggar Bot Block by Time Lookup","description":"Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.","url":"https://beggar-bot-demand.beggarbot.workers.dev/v1/blockbytime?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"time":{"type":"string","description":"unix seconds/ms or ISO date"},"chain":{"type":"string","description":"base|ethereum|optimism|polygon"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lvCtd25XZo_3EO7irIzBz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the blockchain block number closest to a given timestamp on Base, Ethereum, Optimism, or Polygon","exampleAgentPrompt":"What block number on Base was mined closest to January 15, 2025 at 12:00 UTC?","exampleUseCases":[{"title":"Historical DeFi event block lookup","prompt":"I need to know which block on Ethereum was produced at the time of the USDC depeg on March 11, 2023 around 10:00 PM UTC — can you give me the block number?"},{"title":"On-chain audit timestamp resolution","prompt":"For my audit report, what was the closest Base mainnet block to 2024-06-01T00:00:00Z? I need the exact block number to reference on-chain state at that moment."},{"title":"Cross-chain block synchronization","prompt":"Can you tell me what block numbers on both Polygon and Optimism correspond to exactly 1700000000 unix seconds? I want to compare state across those two chains at that moment."}],"resultDescription":"Returns a JSON object containing the block number on the requested chain (default: Base mainnet) that is closest to the specified timestamp, along with the actual block timestamp and chain identifier.","failureModes":["Invalid or unparseable timestamp returns a 400 error","Unsupported chain name returns an error or defaults to Base","Timestamp far in the future or before chain genesis may return an error or the earliest/latest available block","Missing payment (x402) returns a 402 Payment Required response","Network congestion on the underlying RPC may cause timeouts"],"whenToPreferThis":"Use this endpoint when you need to map a human-readable or unix timestamp to a specific block number on Base, Ethereum, Optimism, or Polygon — particularly useful for historical queries, audit trails, or anchoring on-chain state to a real-world time. Prefer this over manual binary search against an RPC node when you need a quick, paid-API resolution with minimal setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:42:31.986Z","isFirstParty":false,"canonicalSlug":"beggar-bot-block-by-time-lookup-f4fff731"}