litecoin-blocks

Returns 100 blocks on Bitcoin and Litecoin, where date since 2024-02-01 and date till 2024-02-15, sorted by height, highest first: timestamp time, height, difficulty, transaction count, block size big int, block hash, block size and 4 more fields.

By Aparna Sridhar · saved 20 February 2024 · run 9 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
      blockSizeBigInt
      blockHash
      blockSize
      blockSizeBigInt
      blockStrippedSize
      blockVersion
      blockWeight
      chainwork
      difficulty
      
    }
  }
}

Variables

{
  "limit": 100,
  "offset": 0,
  "network": "litecoin",
  "from": "2024-02-01",
  "till": "2024-02-15",
  "dateFormat": "%Y-%m-%d"
}

Similar queries