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

<style> .custom-style { color: #048FF4; } </style> Array of networks to query on. The response will be an array with one block per network. Find network enums <span class=“custom-style”><a href=“https://dashboard.alchemy.com/chains” target=“_blank”>here</a></span>

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