tron balances complete

Returns transfers and contracts on Tron, where receiver is TKnurR…6B38, sender is TKnurR…6B38 and tx owner is TKnurR…6B38: amount, currency address, currency symbol, currency name, fee, count and tx owner address.

By George · saved 28 August 2024 · run 11 times · Bitquery API v1

What it returns

Filters

The query

query ($address: String!, $till: ISO8601DateTime) {
  tron {
    received: transfers(
      receiver: {is: $address}
      currency: {is: "TRX"}
      time: {till: $till}
      success: true
    ) {
      amount(calculate: sum)
      currency {
        address
        symbol
        name
      }
    }
    sent: transfers(
      sender: {is: $address}
      currency: {is: "TRX"}
      time: {till: $till}
      success: true
    ) {
      amount(calculate: sum)
      currency {
        address
        symbol
        name
      }
    }
    netFee: contracts(time: {till: $till}, txOwner: {is: $address}) {
      fee(calculate: sum)
      count
      txOwner {
        address
      }
    }
  Stake:contracts(
      txOwner: {is: $address}
      contractType: {in: ["FreezeBalance", "FreezeBalanceV2"]}
      time: {till: $till}
    ) {
      amount(calculate: sum)
      currency {
        name
      }
    }
    Unstake:contracts(
      txOwner: {is: $address}
      contractType: {in: ["UnfreezeBalance", "UnfreezeBalanceV2"]}
      time: {till: $till}
    ) {
      amount(calculate: sum)
      currency {
        name
      }
    }
  }
}

Variables

{
  "address": "TKnurRAN9jL5cC1b4uqENnQLrSDjub6B38",
  "till": "2024-05-14T04:37:54",
  "dateFormat": "%Y-%m-%d"
}

Similar queries