celo-block -rewards

Returns blocks on Ethereum and celo_mainnet, where date since 2023-12-01, date till 2024-01-25 and height is above 0, sorted by date date: date date, count big int, reward and difficulty.

By Aparna Sridhar · saved 25 January 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $dateFormat: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    blocks(
      options: {asc: "date.date"}
      date: {since: $from, till: $till}
      height: {gt: 0}
    ) {
      date: date {
        date(format: $dateFormat)
      }
      count: countBigInt(uniq: miners)
      reward
      usd: reward(in: USD)
      difficulty(calculate: median)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "celo_mainnet",
  "from": "2023-12-01",
  "till": "2024-01-25T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries