balance of crypto in a wallet

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

By Emmanuel Ajala · saved 3 September 2024 · Bitquery API v2

What it returns

Filters

The query

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

Similar queries