v1
latestOpenAPI 3.0.02026-07-26268286602.5 KBlegacy
Get block number by time stamp
Returns the block number created closest to a provided timestamp.
Required:
- timestamp
- closest
get/{chain_id}/api/legacy/block/get-block-number-by-time
Path parameters
chain_idstring required
The ID of the blockchain
Query parameters
timestampstring
Unix timestamp in seconds.
closest'before' | 'after'
Whether to return the block before or after the timestamp.
Response
Block number