tron balances complete

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

By gaurav · saved 31 July 2024 · run 7 times · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
  "address": "TMvdQKWAnq5mrMFpuy25Ns7Tpw2FDnsyP2",
  "till": "2024-08-22T08:29:06",
  "dateFormat": "%Y-%m-%d",
  "height": 568472140
}

Similar queries