weth token balance of a wallet at a particular block

weth token balance on a block

Returns balance updates on Ethereum, where balance update address is 0xCea3…6129, currency smart contract is 0xC02a…6Cc2 and block number is at most 18599923: balance update address, sum of balance update amount, currency name, smart contract and currency symbol.

By Nikhil · saved 21 November 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(network: eth, dataset: combined) {
    BalanceUpdates(
      # if you want balance of token on balance on a block set
      # block value to less than equal to ("le" filter) number of that block
      where: {BalanceUpdate: {Address: {is: "0xCea392596F1AB7f1d6f8F241967094cA519E6129"}}, Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}, Block: {Number: {le: "18599923"}}}
    ) {
      BalanceUpdate {
        Address
      }
      Balance: sum(of: BalanceUpdate_Amount)
      Currency {
        Name
        SmartContract
        Symbol
      }
    }
  }
}

Similar queries