Balance of an address for specific currency
Returns balance updates on Ethereum, where balance update address is 0x88e6…5640 and currency smart contract is 0xc02a…6cc2 or 0xa0b8…eb48, 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 0x88e6…5640
- currency smart contract is 0xc02a…6cc2 or 0xa0b8…eb48
The query
query MyQuery {
EVM(dataset: combined, network: eth) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {is: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"}}, Currency: {SmartContract: {in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]}}}
orderBy: {descendingByField: "balance"}
) {
Currency {
Name
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
BalanceUpdate {
Address
}
}
}
}
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