v1

latestOpenAPI 3.1.02026-07-266641.0 KB

Block at Timestamp

Resolves a Unix timestamp (in seconds) to a block number. Returns the first block whose timestamp is greater than or equal to timestamp. Resolution prefers archival data and falls back to the real-time source when available; the x-sqd-data-source response header reports which source served the result (network or real_time).

get/timestamps/{timestamp}/block

Path parameters

timestampinteger required
Example:1768435200

Unix timestamp in seconds.

Response

Block number resolved.

block_numberinteger required

Number of the first block whose timestamp is greater than or equal to the requested timestamp.

Example response

{
  "block_number": 79257136
}