Tron USDT Balance At Date (Balances Cube)
Historical token balance of an address as of a given date, using the Balances cube. Block Date till sets the cutoff; do not select Block fields or the result splits into per-date rows. Unlike summing Transfers, this includes mints, burns, and genesis supply (e.g. the Tether treasury 10 USDT constructor mint that has no transfer record).
What it returns
- balance address
- balance amount
Filters
- balance address is THPvaU…n5YC
- currency smart contract is TR7NHq…Lj6t
- block date till 2019-04-16
The query
# Historical data
# This query already reads history - it uses the combined dataset, which
# needs the historical data add-on for this chain.
#
# Without the add-on it fails with 'access restricted: your plan only allows
# realtime'. Drop the dataset argument to fall back to the recent window.
#
# Datasets: https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#
query TronUSDTBalanceAtDate {
Tron(dataset: combined) {
Balances(
where: {
Balance: {Address: {in: ["THPvaUhoh2Qn2y9THCZML3H815hhFhn5YC"]}}
Block: {Date: {till: "2019-04-16"}}
Currency: {SmartContract: {in: ["TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"]}}
}
) {
Balance { Address Amount }
}
}
}
Similar queries
- Historical Tron Wallet Balance · Tron · Balances
- Tron Address TRX Balance · Tron · Balances
- Tron Address First and Last Activity · Tron · Balances
- negative Tron Balances · Tron · Balances
- Historical Tron Wallet Balance for a currency · Tron · Balances