getTokenBalances
Returns 100 balance updates on Base, where balance update address is 0x4C7D…60CB, 0xb4d8…332c or 1 more, currency symbol is not and currency decimals is above 0, sorted by amount, highest first: balance update address, currency symbol, smart contract, decimals, currency name and sum of balance update amount.
What it returns
- balance update address
- currency symbol
- smart contract
- decimals
- currency name
- sum of balance update amount
Filters
- balance update address is 0x4C7D…60CB, 0xb4d8…332c or 1 more
- currency symbol is not
- currency decimals is above 0
The query
query getTokenBalances($dataset: dataset_arg_enum!, $network: evm_network, $wallets: [String!], $limit: Int) {
EVM(dataset: $dataset, network: $network) {
BalanceUpdates(
limit: { count: $limit }
orderBy: { descendingByField: "Amount" }
where: {
Currency: { Symbol: { not: " " }, Decimals: { gt: 0 } }
BalanceUpdate: { Address: { in: $wallets } }
}
) {
BalanceUpdate {
Address
}
Currency {
Symbol
SmartContract
Decimals
Name
}
# Prevent pull token with small amounts
Amount: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0.001" })
}
}
}
Variables
{
"network": "base",
"limit": 100,
"wallets": [
"0x4C7D7B58B0DA6a7dc7D49F48869318942a0F60CB",
"0xb4d857f275da05982b0ffc7fac19f3fcdb1e332c",
"0x5dc76a02c49d6f15fbde0506e0d7cc630cee5db2"
],
"dataset": "combined"
}
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