algo balance

Returns 10 transfers on Algorand, where amount is above 0, sorted by count in count out, highest first: amount, count, token ID and currency symbol.

By gaurav · saved 13 February 2025 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: AlgorandNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int!, $offset: Int!) {
  algorand(network: $network) {
    transfers(
      date: {since: $from, till: $till}
      amount: {gt: 0}
      any: [{receiver: {is: $address}}, {sender: {is: $address}}]
      options: {limit: $limit, offset: $offset, desc: ["count_in", "count_out"], asc: "currency.symbol"}
    ) {
      sum_in: amount(calculate: sum, receiver: {is: $address})
      sum_out: amount(calculate: sum, sender: {is: $address})
      count_in: count(receiver: {is: $address})
      count_out: count(sender: {is: $address})
      currency {
        tokenId
        symbol
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "algorand",
  "address": "MGM4UHGV4SQIBQROAPSD37CCVTWWQSFFWZ57NG43URATFGXLVYP5R4FKRM",
  "from": null,
  "till": null,
  "dateFormat": "%Y-%m"
}

Similar queries