time frame

Returns 10 blocks on Ethereum, where time since 2022-01-20 and time till 2022-01-20, sorted by height, highest first: timestamp time, height, transaction count, miner address, annotation, reward and reward currency symbol.

By gaurav · saved 21 February 2022 · run 1 time · 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}
      time: {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": "2022-01-20T00:00:00",
  "till": "2022-01-20T00:05:00",
  "dateFormat": "%Y-%m-%d"
}

Similar queries