Balance of an address at a given time

Returns balance updates on Ethereum, where currency smart contract is 0xa0b8…eb48, balance update address is 0xF2D7…ab50 and block time till 2024-07-01: currency name, smart contract and sum of balance update amount.

By gaurav · saved 8 July 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      where: {Block: {Time: {till: "2024-07-01T00:00:00Z"}}, Currency: {SmartContract: {is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}, BalanceUpdate: {Address: {is: "0xF2D739b97B8AF348ba925c6DB4F59596CEa6ab50"}}}
    ) {
      Currency {
        Name
        SmartContract
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
    }
  }
}

Similar queries