get block height from timestamp
Returns blocks on Ethereum, where block time after 2024-03-06 and block time before 2024-03-06: block number and block time.
What it returns
- block number
- block time
Filters
- block time after 2024-03-06
- block time before 2024-03-06
The query
query ($network: evm_network, $after_date_time: DateTime, $before_date_time: DateTime) {
EVM(network: $network, dataset: archive) {
Blocks(where: {Block: {Time: {after: $after_date_time, before: $before_date_time}}}) {
Block {
Number
Time
}
}
}
}
Variables
{
"network" : "eth",
"before_date_time": "2024-03-06T01:16:00Z",
"after_date_time": "2024-03-06T01:15:00Z",
"date" : "2025-09-01T21:59:47Z"
}
Similar queries
- EVM Blocks · Ethereum · Blocks
- test b count · Ethereum · Blocks
- test test · Ethereum · Blocks
- optimised historical balance · Ethereum · BalanceUpdates
- MyQuery EVM · Ethereum · Blocks