Balance for multiple addresses using BalanceUpdate API

Returns balance updates on Ethereum, where balance update address is 0xcf1D…35f6 or 0x11db…b5be, sorted by balance update address, highest first: currency name, sum of balance update amount and balance update address.

By gaurav · saved 5 March 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {in: ["0xcf1DC766Fc2c62bef0b67A8De666c8e67aCf35f6", "0x11dbf181dd5c075c2abd92cb9579c4809406b5be"]}}}
      orderBy: {descending: BalanceUpdate_Address}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}

Similar queries