balance + liquidity for pair
Returns the latest 100 balance updates on Ethereum, where balance update address is 0xaeca…4e77, currency smart contract is 0xa0b8…eb48 or 0xc02a…6cc2 and block time since 2023-11-27: currency name, smart contract, currency symbol, sum of balance update amount, balance update address, block time, balance update amount and balance update type.
What it returns
- currency name
- smart contract
- currency symbol
- sum of balance update amount
- balance update address
- block time
- balance update amount
- balance update type
Filters
- balance update address is 0xaeca…4e77
- currency smart contract is 0xa0b8…eb48 or 0xc02a…6cc2
- block time since 2023-11-27
The query
query MyQuery {
EVM(dataset: combined, network: eth) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {is: "0xaeca06cd3948e8c28a50f0520202c59f639f4e77"}}}
orderBy: {descendingByField: "balance"}
) {
Currency {
Name
SmartContract
Symbol
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
BalanceUpdate {
Address
}
}
liquidityChanges: BalanceUpdates(
where: {Block: {Time: {since: "2023-11-27T00:00:00Z"}}, BalanceUpdate: {Address: {is: "0xaeca06cd3948e8c28a50f0520202c59f639f4e77"}}, Currency: {SmartContract: {in: ["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}}}
orderBy: {descending: Block_Time}
limit: {count: 100}
) {
Currency {
Name
}
Block {
Time
}
BalanceUpdate {
Amount
Type
}
}
}
}
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