Get balance of an address for a specified currency
Returns balance updates on BNB Chain, where balance update address is 0x5c95…762b and currency smart contract is 0x1337…4444, sorted by balance, highest first: currency name, sum of balance update amount and balance update address.
What it returns
- currency name
- sum of balance update amount
- balance update address
Filters
- balance update address is 0x5c95…762b
- currency smart contract is 0x1337…4444
The query
query MyQuery ($token: String){
EVM(dataset: combined, network: bsc) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {is: "0x5c952063c7fc8610FFDB798152D69F0B9550762b"}}, Currency: {SmartContract: {is: $token}}}
orderBy: {descendingByField: "balance"}
) {
Currency {
Name
}
balance: sum(of: BalanceUpdate_Amount)
BalanceUpdate {
Address
}
}
}
}
Variables
{
"token": "0x13378bcbbc386eea99f09bc716f2c80979484444"
}
Similar queries
- MyQuery EVM · BNB Chain · BalanceUpdates
- Top 10 holders of a token on BSC · BNB Chain · BalanceUpdates
- token holder balance update · BNB Chain · BalanceUpdates
- balance updates on a given transaction · BNB Chain · BalanceUpdates
- wrong top holders list · BNB Chain · BalanceUpdates