Block Attributes

Returns 10 blocks and miner rewards on Ethereum, where block number is 17809274: chain ID, block time, block number, coinbase, parent hash, block hash, difficulty and 3 more fields.

By Nadia · saved 3 August 2023 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $height: String) {
  EVM(dataset: combined, network: $network) {
    Blocks(where: {Block: {Number: {eq: $height}}}, limit: {count: 10}) {
      ChainId
      Block {
        Time
        Number
        Coinbase
        ParentHash
        Hash
        Difficulty
        GasUsed
        TxCount
      }
    }
    MinerRewards(where: {Block: {Number: {eq: $height}}}) {
      sum(of: Reward_Total)
    }
  }
}

Variables

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

Similar queries