balance up to a date

Returns balance updates on Ethereum, where balance update address is 0xcf1D…35f6, currency symbol is ETH and block date before 2023-09-01: currency name, currency symbol, smart contract, sum of balance update amount and balance update address.

By gaurav · saved 18 September 2023 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0xcf1DC766Fc2c62bef0b67A8De666c8e67aCf35f6"}}, Currency: {Symbol: {is: "ETH"}}, Block: {Date: {before: "2023-09-01"}}}
    ) {
      Currency {
        Name
        Symbol
        SmartContract
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}

Similar queries