sender amount

Returns transfers on Tron, where sender is TAw1Xk…W2QB, receiver is TAw1Xk…W2QB and currency is TRX: amount.

By gaurav · saved 30 June 2022 · Bitquery API v1

What it returns

Filters

The query

query MyQuery($address: String, $network: TronNetwork, $currency_id: String) {
  tron(network: $network) {
    sender_amount: transfers(sender: {is: $address}, currency: {is: $currency_id}) {
      amount(calculate: sum)
    }
    receiver_amount: transfers(
      receiver: {is: $address}
      currency: {is: $currency_id}
    ) {
      amount(calculate: sum)
    }
  }
}

Variables

{
  "address": "TAw1XkFJjCfHCq43rSwRs54tYL3TX5W2QB",
  "currency_id": "TRX",
  "network": "tron"
}

Similar queries