Top 10 holders of token on ETH
Returns balance updates on Ethereum, where currency smart contract is 0xFAF0…3d78, 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 0xFAF0…3d78
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"})
balance_usd:sum(of:BalanceUpdate_AmountInUSD)
}
}
}
Variables
{
"network": "eth",
"tokens": [
"0xFAF0cEe6B20e2Aaa4B80748a6AF4CD89609a3d78"
]
}
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