balanceUpdates aggregates yes error

Returns 10 balance updates on BNB Chain, where currency smart contract is 0xC71B…2e81, sorted by balance, highest first: balance update address and sum of balance update amount.

By gaurav · saved 27 May 2025 · run 4 times · Bitquery API v2

What it returns

Filters

The query


{
  EVM(network: bsc, aggregates: yes, dataset: combined) {
    BalanceUpdates(
      orderBy: { descendingByField: "balance" }
      limit: { count: 10 }
      where: {
        Currency: { SmartContract: { is: "0xC71B5F631354BE6853eFe9C3Ab6b9590F8302e81" } }
      }
    ) {
      BalanceUpdate {
        Address
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })
    }
  }
}

Similar queries