For olly

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

By Stiquem · saved 1 June 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"
      }) {
      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})
      # Net Balance(Qty): sum_in - sum_out
      # Net Balance(USD): sum_in(USD) - sum_out(USD)
      currency {
        address
        symbol
        tokenType
      }
    }
  }
}

Variables

{"limit":100000,
  "offset":0,
  "network":"bsc",
  "address":"0x899f01644eb088acabb720cbe45e9a6de819ce53",
  "from":null,
  "till":null,
  "dateFormat":"%Y-%m"
}

Similar queries