Address balance by currencies

Returns 10 balance updates on Ethereum, where balance update address is 0xcf52…00e1, sorted by sum, highest first: chain ID, count, currency symbol, smart contract, sum of balance update amount and sum of balance update amount in USD.

By Nadia · saved 19 February 2025 · run 23 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $address: String!, $limit: Int) {
  EVM(network: $network, dataset: combined) {
    BalanceUpdates(
      orderBy: {descendingByField: "sum"}
      where: {BalanceUpdate: {Address: {is: $address}}}
      limit: {count: $limit}
    ) {
      ChainId
      count
      Currency {
        Symbol
        SmartContract
      }
      sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0.0"})
      sum_usd: sum(of: BalanceUpdate_AmountInUSD, selectWhere: {gt: "0.0"})
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "address": "0xcf523864704a502d36e8e24cd73a2aee6cda00e1"
}

Similar queries