EAP get block height
Returns the latest block on Ethereum, where block time before 2024-03-06: block number and block time.
What it returns
- block number
- block time
Filters
- block time before 2024-03-06
The query
query ($network: evm_network, $before_date_time: DateTime, $count: Int) {
EVM(network: $network, dataset: archive) {
Blocks(where: {Block: {Time: {before: $before_date_time}}}, limit: {count: $count}, orderBy: {descending: Block_Time}) {
Block {
Number
Time
}
}
}
}
Variables
{
"network" : "eth",
"before_date_time": "2024-03-06T01:16:00Z",
"count" :1
}
Similar queries
- EVM Blocks · Ethereum · Blocks
- test b count · Ethereum · Blocks
- test test · Ethereum · Blocks
- optimised historical balance · Ethereum · BalanceUpdates
- MyQuery EVM · Ethereum · Blocks