Closed modersohn closed 1 year ago
I just tried a query for getting the first 100 accounts with balances for token LRC. Seems to work by getting the ones with biggest balance. Check THIS query...
If it doesn't work here's the query:
query LRCWhales {
accountTokenBalances(
orderDirection: desc
orderBy: balance
first: 100
where: {token_: {symbol: "LRC"}}
) {
id
balance
token {
name
symbol
}
}
}
With this method from the ENSservice class we could further find the ens from the address:
Might be easy to set up a list of the top 100 whales for each token. This will ofc be realtime and not graph over time. But a good starting point perhaps?
Yes something along those lines, but since we're already on a token page we can just query by token id
and there's no need to get the token info again for each result.
And block_height
already is an additional query param directly (i.e. not part of the where) so can be used with the same query.
The reverse ENS lookup is a completely separate topic. @fudgebucket27 already had this committed in b0058ee but never went forward to merge it, probably for a reason. Either way this needs to get a separate issue if we want to do it.
Seems boring, but there could be some nice gimmicks to show: