Wilbur

Returns 100 blocks on Bitcoin, where date since 2024-12-10 and date till 2024-12-10, sorted by height, highest first: timestamp time, height, difficulty, transaction count and block size big int.

By Andrew Wilbur · saved 10 December 2024 · 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: {desc: "height", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      difficulty
      transactionCount
      blockSizeBigInt
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 10,
  "network": "bitcoin",
  "from": "2024-12-10T01:14:38.000Z",
  "till": "2024-12-10T03:14:38.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries