balance of an address

Returns balance updates on Ethereum, where balance update address is 0x4695…9230, sorted by balance, highest first: smart contract, currency name, currency symbol, sum of balance update amount, sum of balance update amount in USD and balance update address.

By gaurav · saved 15 July 2024 · run 5 times · Bitquery API v2

What it returns

Filters

The query

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

Similar queries