Latest Blocks on Ethereum

Returns 10 blocks on Ethereum, where date since 2021-10-07, sorted by height, highest first: timestamp time, height, transaction count, miner address, annotation, reward and reward currency symbol.

By gaurav · saved 7 October 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(options: {desc: "height", limit: $limit, offset: $offset}, date: {since: $from, till: $till}) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      transactionCount
      address: miner {
        address
        annotation
      }
      reward
      rewardCurrency {
        symbol
      }
    }
  }
}

Variables

{"limit":10,"offset":0,"network":"ethereum","from":"2021-10-07","till":null,"dateFormat":"%Y-%m-%d"}

Similar queries