Closest Aerodrome LP
Returns 50 token holders and balance updates on Base, where holder address is 0x27e3…9a44, balance update address is 0xb2cc…DC59 and currency smart contract is 0x4200…0006: holder address, currency name, currency symbol, balance amount, decimals, sum of balance update amount and smart contract.
What it returns
- holder address
- currency name
- currency symbol
- balance amount
- decimals
- sum of balance update amount
- smart contract
Filters
- holder address is 0x27e3…9a44
- balance update address is 0xb2cc…DC59
- currency smart contract is 0x4200…0006
- currency smart contract is 0x8335…2913
The query
query AerodromeWETHUSDCPosition($walletAddress: String!, $tokenSmartContract: String!) {
EVM(dataset: combined, network: base) {
# Direct LP token holdings
DirectLPHolding: TokenHolders(
date: "2025-05-30"
tokenSmartContract: $tokenSmartContract
where: {
Holder: {
Address: { is: $walletAddress }
}
}
) {
Holder {
Address
}
Currency {
Name
Symbol
}
Balance {
Amount
}
}
# Get WETH reserves in the pool
WETHReserves: BalanceUpdates(
where: {
BalanceUpdate: {
Address: { is: $tokenSmartContract }
},
Currency: {
SmartContract: { is: "0x4200000000000000000000000000000000000006" }
}
}
) {
Currency {
Symbol
Decimals
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })
}
# Get USDC reserves in the pool
USDCReserves: BalanceUpdates(
where: {
BalanceUpdate: {
Address: { is: $tokenSmartContract }
},
Currency: {
SmartContract: { is: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" }
}
}
) {
Currency {
Symbol
Decimals
}
balance: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })
}
# Look for any LP tokens in known Aerodrome gauge addresses
# This requires specific gauge contract addresses, which we don't have
# Let's check all tokens held by the wallet instead
AllTokensHeld: TokenHolders(
tokenSmartContract: $tokenSmartContract
date: "2025-05-30"
where: {
Holder: {
Address: { is: $walletAddress }
}
}
limit: {count: 50}
) {
Holder {
Address
}
Currency {
Name
Symbol
SmartContract
}
Balance {
Amount
}
}
}
}
Variables
{"walletAddress": "0x27e380b98d8c6f1343dae4cc482c3603e14d9a44",
"tokenSmartContract": "0xb2cc224c1c9feE385f8ad6a55b4d94E92359DC59"}
Similar queries
- Telcoin holders · Ethereum · TokenHolders
- base - token holder · Base · TokenHolders
- TokenHolders Bug · Base · TokenHolders
- base_token_holder_ · Base · TokenHolders
- holder_query__ · Base · TokenHolders