{"slug":"api-zato-org-api-chain-block-by-time-34bb23","title":"Use when an agent must map a date or unix time to an on-chain block, e.g","host":"api.zato.org","method":"GET","resource":"https://api.zato.org/api/chain/block-by-time","category":"market","description":"Use when an agent must map a date or unix time to an on-chain block, e.g. before reading balances or logs at that moment: returns the last block whose timestamp is at or before the given time (binary search over RPC headers), with its timestamp and hash. Read-only, Ethereum (default) or Base.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checked_on":"2026-12-02","checks_7d":2,"answered_7d":2,"latency_ms_median":350,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"network":"ethereum","timestamp":"1735689600"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"network":{"description":"ethereum (default) or base","type":"string"},"timestamp":{"description":"unix time in seconds, e.g. 1735689600","type":"string"}},"required":["timestamp"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"data":{"properties":{"block_hash":{"type":"string"},"block_number":{"type":"integer"},"block_timestamp":{"type":"integer"},"head_block":{"type":"integer"},"network":{"type":"string"},"requested_timestamp":{"type":"integer"},"source":{"type":"string"}},"type":"object"},"meta":{"type":"object"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-12-02","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":356,"error":null},{"day":"2026-12-01","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":345,"error":null}],"description_full":"Use when an agent must map a date or unix time to an on-chain block, e.g. before reading balances or logs at that moment: returns the last block whose timestamp is at or before the given time (binary search over RPC headers), with its timestamp and hash. Read-only, Ethereum (default) or Base.","last_updated":"2026-12-01T09:07:27.224Z","schemes":["exact"]}