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
Request
- Base URLhttps://portal.sqd.dev/datasets/bitcoin-mainnet
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
timestampinteger required
Example:1768435200
Unix timestamp in seconds.
Response
Block number resolved.
Example response
{
"block_number": 79257136
}Changes
No recorded changes to this operation across all 1 revision of this API.