Cosmos transactions

Returns the latest 10 transactions on cosmoshub, where time since 2024-01-25 and time till 2024-01-25: timestamp time, block height and hash.

By Anmol · saved 25 January 2024 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query ($network: CosmosNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  cosmos(network: $network) {
    transactions(
      options: {desc: "block.height", limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      hash
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "cosmoshub",
  "from": "2024-01-25T09:06:55.000Z",
  "till": "2024-01-25T09:36:55.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries