Balance for an address for an specific currency

Returns balance updates on Ethereum, where balance update address is 0x3416…27c6 and currency smart contract is 0xa0b8…eb48: currency name, smart contract and sum of balance update amount.

By gaurav · saved 27 February 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x3416cf6c708da44db2624d63ea0aaef7113527c6"}}, Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}}
    ) {
      Currency {
        Name
        SmartContract
      }
      balance: sum(of: BalanceUpdate_Amount)
    }
  }
}

Similar queries