Latest Blocks

Returns the latest 10 blocks on Ethereum, where block date till 2025-04-24 and block date since 2025-04-17: coinbase, block time, tx count, block number, block hash, gas used, tx hash and 2 more fields.

By Nadia · saved 24 April 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $offset: Int!, $from: String, $till: String) {
  EVM(network: $network, dataset: realtime) {
    Blocks(
      limit: {count: $limit, offset: $offset}
      orderBy: {descending: Block_Time}
      where: {Block: {Date: {till: $till, since: $from}}}
    ) {
      Block {
        Coinbase
        Time
        TxCount
        Number
        Hash
        GasUsed
        TxHash
        BaseFee
      }
      ChainId
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "eth",
  "from": "2025-04-17",
  "till": "2025-04-24",
  "dateFormat": "%Y-%m-%d",
  "date_middle": "2025-04-20"
}

Similar queries