balances of wallets test1 base
Returns balance updates on Base, where balance update address is 0xD7De…638f, 0x4c55…2862 or 2 more 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 0xD7De…638f, 0x4c55…2862 or 2 more
- currency smart contract is 0x8335…2913
The query
query MyQuery($addressList: [String!], $currencyList: [String!]) {
EVM(dataset: combined, network: base, aggregates: yes) {
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": ["0xD7DeF291ec916b2E25562711dD3161Ea2317638f","0x4c55BC16F11bb344B481163E4a788b4EA04d2862","0x0000000000000068F116a894984e2DB1123eB395","0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"],
"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
- search address v2 · Ethereum · BalanceUpdates
- native/stable balances of wallets · Base · BalanceUpdates