Smart Contract balance by currencies

Returns balance updates on Ethereum, where balance update address is 0xdac1…1ec7 and currency smart contract is not 0x, sorted by sum, highest first: chain ID, count, currency symbol, smart contract and sum of balance update amount.

By Nadia · saved 8 August 2023 · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "offset": 0,
  "network": "eth",
  "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}

Similar queries