Subscription Latest Blocks Fix 2

Streams the latest blocks as they happen: coinbase, block time, tx count, block number, block hash, gas used, tx hash and 2 more fields.

By lukas · saved 21 June 2025 · Bitquery API v2

What it returns

The subscription

subscription ($network: evm_network, $limit: Int, $offset: Int!) {
  EVM(network: $network) {
    Blocks(
      limit: {count: $limit, offset: $offset}
      orderBy: {descending: Block_Time}
    ) {
      Block {
        Coinbase
        Time
        TxCount
        Number
        Hash
        GasUsed
        TxHash
        BaseFee
      }
      ChainId
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "eth",
}

Similar queries