native/stable balances of wallets
Returns balance updates on Base, where balance update address is 0xAf80…6313 and currency smart contract is 0x8335…2913, sorted by balance, highest first: currency name, currency symbol, smart contract, native, sum of balance update amount and balance update address.
What it returns
- currency name
- currency symbol
- smart contract
- native
- sum of balance update amount
- balance update address
Filters
- balance update address is 0xAf80…6313
- currency smart contract is 0x8335…2913
The query
query MyQuery($addressList: [String!], $currencyList: [String!]) {
EVM(dataset: combined, network: base) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {in: $addressList}}, Currency: {SmartContract: {in: $currencyList}}}
orderBy: {descendingByField: "balance"}
) {
Currency {
Name
Symbol
SmartContract
Native
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
BalanceUpdate {
Address
}
}
}
}
Variables
{
"addressList": ["0xAf803Df825ce8c694f9Fcb632bbe198b124e6313"],
"currencyList": ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]
}
Similar queries
- base token holder · Base · BalanceUpdates
- base real time token holder · Base · BalanceUpdates
- Top 10 holders of multiple tokens on Base · Base · BalanceUpdates
- balances of wallets test2 base · Base · BalanceUpdates
- search address v2 · Ethereum · BalanceUpdates