Block Attributes fix

Returns 10 blocks on Ethereum, where block number is 17808580: chain ID, count, block number and coinbase.

By Aleksey · saved 31 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $height: String) {
  EVM(dataset: combined, network: $network) {
    Blocks(where: {Block: {Number: {in: [$height]}}}, limit: {count: 10}) {
      ChainId
      total_difficulty: count(distinct: Block_Difficulty)
      transaction_count: count
      Block {
        Number
        Coinbase
      }
    }
  }
}

Variables

{
  "offset": 0,
  "height": "17808580",
  "network": "eth"
}

Similar queries