Tron Balances

Returns balances and transfers on Tron, where balance address is TTd9qH…bpkN, currency smart contract is TR7NHq…Lj6t and transfer sender is TTd9qH…bpkN: balance address, balance amount, smart contract, currency symbol, sum of transfer amount, sender and receiver.

By gaurav · saved 14 July 2026 · run 39 times · Bitquery API v2

What it returns

Filters

The query

query ($addresses: [String!]!, $till: String!, $date: String!, $until: DateTime!, $contracts: [String!]!) {
  Tron(dataset: combined) {
    Balances(
      where: {Balance: {Address: {in: $addresses}}, Block: {Date: {till: $till}}, Currency: {SmartContract: {in: $contracts}}}
    ) {
      Balance {
        Address
        Amount
      }
      Currency {
        SmartContract
        Symbol
      }
    }
  }
  sent: Tron(dataset: combined) {
    Transfers(
      where: {Block: {Date: {is: $date}, Time: {till: $until}}, Transfer: {Currency: {SmartContract: {in: $contracts}}, Sender: {in: $addresses}}}
    ) {
      amount: sum(of: Transfer_Amount)
      Transfer {
        Sender
        Currency {
          SmartContract
        }
      }
    }
  }
  received: Tron(dataset: combined) {
    Transfers(
      where: {Block: {Date: {is: $date}, Time: {till: $until}}, Transfer: {Currency: {SmartContract: {in: $contracts}}, Receiver: {in: $addresses}}}
    ) {
      amount: sum(of: Transfer_Amount)
      Transfer {
        Receiver
        Currency {
          SmartContract
        }
      }
    }
  }
}

Variables

{
  "addresses": ["TTd9qHyjqiUkfTxe3gotbuTMpjU8LEbpkN"],
  "till": "2025-09-24",
  "date": "2025-09-25",
  "until": "2025-09-25T19:02:00.000Z",
  "contracts": ["TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"]
}

Similar queries