eth_getBalance-for-one-address-for-eth

Returns balance updates, where balance update address is 0x21a3…5549 and currency smart contract is 0x: currency name, currency symbol, smart contract and sum of balance update amount in USD.

By Kshitij Mahajan · saved 13 August 2024 · Bitquery API v2

What it returns

Filters

The query

{
  EVM {
    BalanceUpdates(
      where: {
        BalanceUpdate: {
          Address: {
            is: "0x21a31ee1afc51d94c2efccaa2092ad1028285549"
          }
        },
        Currency: {
          SmartContract: {
            is: "0x"
          }
        }
      }
    ) {
      Currency {
        Name
        Symbol
        SmartContract
      }
      sum(of: BalanceUpdate_AmountInUSD, selectWhere: {gt: "0"})
    }
  }
}

Similar queries