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.
What it returns
- currency name
- smart contract
- sum of balance update amount
Filters
- balance update address is 0x4585…20c0
- currency smart contract is 0x2260…c599 or 0xc02a…6cc2
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
- eth balance · Ethereum · BalanceUpdates
- Ethereum balance view · Ethereum · BalanceUpdates
- Balance update API explanation · Ethereum · BalanceUpdates
- MyQuery EVM · BNB Chain · BalanceUpdates
- usdt_holder_balance_update_ · Ethereum · BalanceUpdates