Algo query fix

Returns 10000 address details and transfers on Algorand, where address is AS37KJ…LC3I, sorted by currency symbol: balance, pending rewards, rewards, status, amount, token ID, currency symbol and 3 more fields.

By gaurav · saved 8 September 2022 · run 50 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) {
    algorand_withRewards: address(address: {is: $address}) {
      balance
      pendingRewards
      rewards
      status
    }
    token_transfers: transfers(
      time: {since: $from, till: $till}
      any: [{receiver: {is: $address}}, {sender: {is: $address}}]
      options: {limit: $limit, offset: $offset, asc: "currency.symbol"}
    ) {
      sum_in: amount(calculate: sum, receiver: {is: $address})
      sum_out: amount(calculate: sum, sender: {is: $address})
      currency {
        tokenId
        symbol
        name
        address
        tokenType
      }
    }
  }
}

Variables

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

Similar queries