Blocks by Timestamp

Fetches the first block before or after a given timestamp. Returns the block’s number and on-chain timestamp.

Path parameters

apiKeystringRequired

For higher throughput, create your own API key

Headers

AuthorizationstringRequired

Query parameters

networkslist of stringsRequired

Array of networks to query on. The response will be an array with one block per network. Find network enums here

timestampstringRequired

Unix or ISO timestamp

directionenumRequired

Return the first block “BEFORE” or “AFTER” the provided timestamp

Allowed values:

Response

Successful response

datalist of objects

List of blocks

Errors