Binance

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

By Abhishek · saved 27 May 2022 · run 1 time · 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": "bitcash",
  "from": "2022-05-27",
  "till": "2022-05-27T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries