Latest Blocks

Returns the latest 10 blocks on Ethereum, where block date till 2023-12-28 and block date since 2023-12-21: coinbase, block time, tx count, block number, block hash, gas used, tx hash and 2 more fields.

By Nadia · saved 28 December 2023 · run 136 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: combined) {
    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": "2023-12-21",
  "till": "2023-12-28"
}

Similar queries