algorand problem

Returns 10 transfers on Algorand, where date since 2022-01-01, date till 2022-10-30 and amount is above 0, sorted by count, highest first: currency symbol, token ID, count, minimum of date, maximum of date and amount.

By gaurav · saved 30 October 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query


            query ($network: AlgorandNetwork!,
                  $limit: Int!,
                  $offset: Int!,
                  $from: ISO8601DateTime,
                  $till: ISO8601DateTime){
                   algorand(network: $network){
                      transfers(
                      options:{desc: "count" asc: "currency.symbol" limit: $limit, offset: $offset},
                      amount: {gt: 0},
                      date: {
                        since: $from
                        till: $till}

                      ) {
                          currency {
                            symbol
                            tokenId
                          }
                          count(transferType: {in: [send,close]})

                          senders: count(uniq: senders)
                          receivers: count(uniq: receivers)
                          days: count(uniq:dates)

                          from_date: minimum(of: date)
                          till_date: maximum(of: date)

                          amount(transferType: {notIn: [create, genesis]})
                          amount_usd: amount(in: USD, transferType: {notIn: [create, genesis]})

                          created_amount: amount(transferType: {in: [create, genesis]})
                      }
                    }
                  }

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "algorand",
  "from": "2022-01-01",
  "till": "2022-10-30T23:59:59",
  "dateFormat": "%Y-%m"
}

Similar queries