getting pool liquidity on uniswap v3

Returns balance updates on Ethereum, where balance update address is 0x4585…20c0 and currency smart contract is 0x2260…c599 or 0xc02a…6cc2, sorted by balance, highest first: currency name, smart contract and sum of balance update amount.

By gaurav · saved 13 May 2024 · run 22 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: archive, network: eth) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0x4585fe77225b41b697c938b018e2ac67ac5a20c0"}}, Currency: {SmartContract: {in: ["0x2260fac5e5542a773aa44fbcfedf7c193bc2c599", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}}}
      orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
        SmartContract
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
    }
  }
}

Similar queries