Ethereum-Wallet-Balances-ERC20

Returns balance updates, where balance update address is 0xED71…CF72 and currency protocol name is token or erc20: smart contract, currency name, currency symbol, fungible, native, decimals, sum of balance update amount and balance update address.

By Naresh · saved 21 February 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query FETCH_ETHEREUM_WALLET_BALANCES($address_list: [String!]) {
  EVM(dataset: combined) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {in: $address_list}}, 
              Currency: {ProtocolName: {in: ["", "token", "erc20"]}}}
    ) {
      Currency {
        SmartContract
        Name
        Symbol
        Fungible
        Native
        Decimals
      }
      sum(of: BalanceUpdate_Amount)
      BalanceUpdate {
        Address
      }
    }
  }
}

Variables

{
  "address_list": [    "0xED71AA0DA4FDBA512FFA398FCFF9DB8C49A5CF72"
  ]
}

Similar queries