Show blocks

Returns 10 blocks on Bitcoin and bitcoinsv, where date since 2022-10-02 and date till 2022-10-09, sorted by height, highest first: timestamp time, height, difficulty, transaction count and block size.

By Andrey · saved 9 October 2022 · run 2 times · 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
      blockSize
    }
  }
}

Variables

{"limit":10,"offset":0,"network":"bitcoinsv","from":"2022-10-02","till":"2022-10-09T23:59:59","dateFormat":"%Y-%m-%d"}

Similar queries