balance and fee of an address

Returns transactions and balance updates on Ethereum, where transaction from is 0x0003…6dAA, balance update address is 0x0003…6dAA and block time till 2024-06-30: sum of fee sender fee, currency name, smart contract, currency symbol and sum of balance update amount.

By gaurav · saved 9 July 2024 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    Transactions(
      where: {Transaction: {From: {is: "0x000338F2C046EE21C0a348481f3b21e251bf6dAA"}}}
    ) {
      Total_Fees: sum(of: Fee_SenderFee)
    }
  }
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x000338F2C046EE21C0a348481f3b21e251bf6dAA"}}, Block: {Time: {till: "2024-06-30T23:59:59Z"}}}
    ) {
      Currency {
        Name
        SmartContract
        Symbol
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
    }
  }
}

Similar queries