Get block number by time stamp
legacy
Get block number by time stamp
Returns the block number created closest to a provided timestamp.
Required:
timestampclosest
GET
Get block number by time stamp
Documentation Index
Fetch the complete documentation index at: https://blockscout-main.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Query Parameters
Unix timestamp in seconds.
Pattern:
^-?([1-9][0-9]*|0)$Whether to return the block before or after the timestamp.
Available options:
before, after API key for rate limiting or for sensitive endpoints
Secret key for getting access to restricted resources
Response
200 - application/json
Block number