matic request

Returns 10 transfers on Ethereum and Polygon, where amount is above 0, sorted by count in count out, highest first: amount, count, currency address, currency symbol and token type.

By Aman · saved 31 October 2021 · Bitquery API v1

What it returns

Filters

The query


            query($network: EthereumNetwork!,
                  $address: String!,
                  $from: ISO8601DateTime,
                  $till: ISO8601DateTime,
                  $limit: Int!,
                  $offset: Int!){
              ethereum(network: $network) {
                transfers(date: {since: $from, till: $till},
                amount: {gt: 0}
                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 {
                      address
                      symbol
                      tokenType
                    }
                  }
              }
            }

Variables

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

Similar queries