Basic

Basic onchain BTC Pull from BitQuery API

Returns 10 blocks and money flows on Bitcoin, where date since 2024-04-19 and date till 2024-04-20, sorted by height, highest first: timestamp time, height, difficulty, transaction count, block size big int, block size, block hash and currency.

By Focus · saved 20 April 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}
      blockHash: {}
      blockSize: {}
      blockVersion: {}
      blockStrippedSize: {}
      difficulty: {}
      height: {}
    ) {
      timestamp {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      height
      difficulty
      transactionCount
      blockSizeBigInt
      blockSize
      blockHash
    }
    coinpath {
      currency
    }
    addressStats(address: {}, options: {})
  }
  utilities {
    metrics(queryId: "")
    activePeriod(apiKey: "")
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bitcoin",
  "from": "2024-04-19T23:20:13.000Z",
  "till": "2024-04-20T01:20:13.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries