Atom GetBlockHeight Query

Atom Get BlockHeight From Date

Returns 10 blocks, where time till 2023-08-07, sorted by timestamp iso8601, highest first: height and iso8601.

By Debasish · saved 10 October 2025 · Bitquery API v1

What it returns

Filters

The query

query ($till: ISO8601DateTime) {
  cosmos {
    blocks(time: {till: $till}, options: {desc: "timestamp.iso8601", limit: 10}) {
      height
      timestamp {
        iso8601
      }
    }
  }
}

Variables

{
  "till": "2023-08-07T23:59:59Z"
}

Similar queries