test count using joins
Returns balance updates on Solana, where currency mint address is 5UUH9R…hgH2 and balance update post balance is above 0: unique of balance update account address, currency name, currency mint address and currency symbol.
What it returns
- unique of balance update account address
- currency name
- currency mint address
- currency symbol
Filters
- currency mint address is 5UUH9R…hgH2
- balance update post balance is above 0
The query
{
Solana(network: solana, aggregates: yes) {
BalanceUpdates(
where: {BalanceUpdate: {Currency: {MintAddress: {is: "5UUH9RTDiSpq6HKS6bp4NdU9PNJpXRXuiw6ShBTBhgH2"}}, PostBalance: {gt: "0"}}}
) {
holder_c: uniq(of: BalanceUpdate_Account_Address)
joinBalanceUpdates(
join: inner
BalanceUpdate_Currency_MintAddress: BalanceUpdate_Currency_MintAddress
where: {BalanceUpdate: {Currency: {MintAddress: {is: "5UUH9RTDiSpq6HKS6bp4NdU9PNJpXRXuiw6ShBTBhgH2"}}, PostBalance: {gt: "0"}}}
) {
BalanceUpdate {
Currency {
Name
MintAddress
Symbol
}
}
}
}
}
}
Similar queries
- holders with time · Solana · BalanceUpdates
- holders · Solana · BalanceUpdates
- traders · Solana · BalanceUpdates
- Solana BalanceUpdates1 · Solana · BalanceUpdates
- Solana BalanceUpdates · Solana · BalanceUpdates