top holders of a token on tron
Returns balance updates on Tron, where currency smart contract is TXL6rJ…8MRT, sorted by balance, highest first: balance update address, currency name, sum of balance update amount and sum of balance update amount in USD.
What it returns
- balance update address
- currency name
- sum of balance update amount
- sum of balance update amount in USD
Filters
- currency smart contract is TXL6rJ…8MRT
The query
query MyQuery($tokens: [String!]) {
Tron(aggregates: yes, dataset: combined) {
BalanceUpdates(
orderBy: {descendingByField: "balance"}
limitBy: {count: 10 by:Currency_SmartContract}
where: {Currency: {SmartContract: {in: $tokens}}}
) {
BalanceUpdate {
Address
}
Currency{
Name
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
balance_usd:sum(of:BalanceUpdate_AmountInUSD)
}
}
}
Variables
{
"tokens": [
"TXL6rJbvmjD46zeN1JssfgxvSo99qC8MRT"
]
}
Similar queries
- Tron Balance of Address at Blockdate · Tron · BalanceUpdates
- tron historical balance · Tron · BalanceUpdates
- tron v2 · Tron · BalanceUpdates
- Tron BalanceUpdates Native eg · Tron · BalanceUpdates
- Tron transfer · Tron · BalanceUpdates