eth balance api for specific tokens

Returns balance updates on Ethereum, where balance update address is 0x28c6…1d60 and currency smart contract is 0x, 0xa0b8…eb48 or 2 more: currency symbol, native, smart contract, sum of balance update amount and balance update address.

By gaurav · saved 21 May 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query EvmNetworkBalanceQuery($wallets: [String!], $network: evm_network!) {
  EVM(dataset: archive, network: $network) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {in: $wallets}}, 
        Currency: {SmartContract: {in: ["0x",
          "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "0x59f4f336bf3d0c49dbfba4a74ebd2a6ace40539a",
          "0xdac17f958d2ee523a2206206994597c13d831ec7"]}}}
    ) {
      currency: Currency {
        symbol: Symbol
        Native
        address: SmartContract
      }
      value: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        address: Address
      }
    }
  }
}

Variables

{
  "network": "eth",
  "wallets": [
    "0x28c6c06298d514db089934071355e5743bf21d60"
  ]
}

Similar queries