wallet asset balance

Returns balance updates on Ethereum, where balance update address is 0x41Bc…C56d, sorted by balance in USD, highest first: currency name, sum of balance update amount, sum of balance update amount in USD and balance update address.

By Emmanuel Ajala · saved 10 July 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x41Bc7d0687e6Cea57Fa26da78379DfDC5627C56d"}}}
      orderBy: {descendingByField: "balanceInUSD"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      balanceInUSD: sum(of: BalanceUpdate_AmountInUSD, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}

Similar queries