tron sender and receiver amount

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

By gaurav · saved 30 June 2022 · run 3 times · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  "address": "TFnP6T48ic6Tg5xobW1xzjPB9gh4UdWUVA",
  "currency_id": "TRX",
  "network": "tron",
  "since": "2022-01-29T00:00:00",
  "till": "2022-06-30T00:00:00"
}

Similar queries