tron balances complete v1

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

By gaurav · saved 24 March 2025 · run 2 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": "TCxeWUwhi1wA4Q66usdFKyx3u24ZdBksf6",
  "till": "2024-05-14T04:37:54",
  "dateFormat": "%Y-%m-%d"
}

Similar queries