Unoptimized query

Returns transfers on Tron, where contract type is Transfer: minimum of time, maximum of time, minimum of amount and maximum of amount.

By gaurav · saved 26 February 2024 · run 10 times · Bitquery API v1

What it returns

Filters

The query

query MyQuery($address: String!) {
  tron(network: tron) {
    out_tx_stats: transfers(
      contractType: {is: "Transfer"}
      any: [{receiver: {is: $address}}, {txTo: {is: $address}}]
    ) {
      first_tx_time: minimum(of: time, get: time)
      last_tx_time: maximum(of: time, get: time)
      lowest_tx_value: minimum(of: amount, get: amount)
      highest_tx_value: maximum(of: amount, get: amount)
    }
    in_tx_stats: transfers(
      contractType: {is: "Transfer"}
      any: [{sender: {is: $address}}, {txFrom: {is: $address}}]
    ) {
      first_tx_time: minimum(of: time, get: time)
      last_tx_time: maximum(of: time, get: time)
      lowest_tx_value: minimum(of: amount, get: amount)
      highest_tx_value: maximum(of: amount, get: amount)
    }
  }
}

Variables

{
  "address": "THRvEuQWg5ATobFB4Mk7A4My8BcQJhYFDV"
}

Similar queries