Top 10 holders of multiple tokens on ETH
Returns balance updates on Ethereum, where currency smart contract is 0x7f39…2Ca0, sorted by balance, highest first: balance update address, currency name and sum of balance update amount.
What it returns
- balance update address
- currency name
- sum of balance update amount
Filters
- currency smart contract is 0x7f39…2Ca0
The query
query MyQuery($network: evm_network, $tokens: [String!]) {
EVM(network: $network, 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"})
}
}
}
Variables
{
"network": "eth",
"tokens": [
"0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
]
}
Similar queries
- eth balance · Ethereum · BalanceUpdates
- Ethereum balance view · Ethereum · BalanceUpdates
- Balance update API explanation · Ethereum · BalanceUpdates
- MyQuery EVM · BNB Chain · BalanceUpdates
- usdt_holder_balance_update_ · Ethereum · BalanceUpdates