balances of wallets test2 base

Returns balance updates on Base, where balance update address is 0xD7De…638f, 0x4c55…2862 or 8 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.

By Divyasshree · saved 21 January 2026 · run 1 time · Bitquery API v2

What it returns

Filters

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", "0xb085a5d05e2c4127a6587f72d310504b3d84f725",
    "0x506e35a6659348aa32e61f67872b37f83166c18d",
    "0x53ce45f3ee328c69edc70011e30b9a3eca25220d",
    "0x53ee308c26c9bc9d224c511aaa5fdd5f485b7ab1",
    "0xf5042e6ffac5a625d4e7848e0b01373d8eb9e222",
    "0xf70da97812cb96acdf810712aa562db8dfa3dbef"],
  "currencyList": ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]
}

Similar queries