balance

Returns balance updates on Base, where balance update address is 0x45D4…fb45: currency name, currency symbol, smart contract, decimals, sum of balance update amount, sum of balance update amount in USD, chain ID and balance update ID.

By Anki · saved 18 April 2025 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($network: evm_network, $walletAddress: String) {
  EVM(dataset: combined, network: $network) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: $walletAddress}, Id: {in: ""}}}
    ) {
      Currency {
        Name
        Symbol
        SmartContract
        Decimals
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      balance_in_usd: sum(of: BalanceUpdate_AmountInUSD)
      ChainId
      BalanceUpdate {
        Id
      }
    }
  }
}

Variables

{"network": "base", "walletAddress": "0x45D4778a5ad57fa9d102aD47005757fE7640fb45"}

Similar queries