Bitcoin Blocks Per Month

Returns 100 blocks on Bitcoin, where date since 2021-01-01 and date till 2021-12-30, sorted by date month: month, year and count.

By Sayon · saved 22 December 2021 · Bitquery API v1

What it returns

Filters

The query

query ($network: BitcoinNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  bitcoin(network: $network) {
    blocks(  
      options: {asc: "date.month", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      date{
        month
        year
      }
      count 
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "bitcoin",
  
  "from": "2021-01-01",
  "till": "2021-12-30T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries