cosmos_BIT-10447_query

Returns 10 transfers on cosmoshub, where date till 2024-10-25, sorted by count in count out, highest first: value, count and currency symbol.

By Omkar_BQ · saved 15 November 2024 · Bitquery API v1

What it returns

Filters

The query

query ($network: CosmosNetwork!, $address: String!, $till: ISO8601DateTime, $limit: Int!, $offset: Int!) {
  cosmos(network: $network) {
    transfers(
      date: {till: $till}
      any: [{receiver: {is: $address}}, {sender: {is: $address}}]
      options: {limit: $limit, offset: $offset, desc: ["count_in", "count_out"], asc: "currency.symbol"}
    ) {
      sum_in: value(calculate: sum, receiver: {is: $address})
      sum_out: value(calculate: sum, sender: {is: $address})
      count_in: count(receiver: {is: $address})
      count_out: count(sender: {is: $address})
      currency {
        symbol
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "cosmoshub",
  "address": "cosmos14cg7kdldtzflplr4cxnv8d2s83xgqk2zl6wu8x",
  "till": "2024-10-25T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries