Get balance of an address for a specified currency

Returns balance updates on BNB Chain, where balance update address is 0x5c95…762b and currency smart contract is 0x366f…4444, sorted by balance, highest first: currency name, sum of balance update amount and balance update address.

By gaurav · saved 23 June 2025 · run 11 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: bsc) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x5c952063c7fc8610FFDB798152D69F0B9550762b"}}, Currency: {SmartContract: {is: "0x366f446d2583fa4e703aa24721c820d5e5424444"}}}
      orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount)
      BalanceUpdate {
        Address
      }
    }
  }
}

Similar queries