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
Authorizations
API key passed as a Bearer token in the Authorization header.
Path Parameters
The ID of the blockchain
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 Response
200 - application/json
Block number
Human-readable status string — OK on success, a descriptive error message otherwise.
Block number closest to the requested timestamp; null if the lookup fails.
1 = OK, 0 = error, 2 = pending.
Available options:
0, 1, 2 Unified quick search across addresses, blocks, transactions, block numbers, dapps, tokens, NFTs, and domains; supports unlimited results per chain.
Previous
Search for tokens, addresses, contracts, blocks, or transactions by identifier
Next