Untitled
unknown
plain_text
2 years ago
581 B
5
Indexable
SELECT
hex(holder_address),
FLOOR(((balance_new) / 1000000000000000000) * 100000 / 1000000000 / 5) * 5 AS balance_on_wallet,
sum(balance_new / pow(10,18)) as balance_sum
FROM (
SELECT
holder_address,
argMax(balance, signed_at) as balance_new
FROM reports.balances
WHERE contract_address = unhex('1f9840a85d5af5bf1d1762f925bdaddc4201f984') AND chain_name = 'eth_mainnet' AND signed_at < '2022-06-13'
GROUP BY holder_address
) AS subquery
WHERE balance_new > 0 and balance_on_wallet >= 16
GROUP BY holder_address, balance_on_wallet
ORDER BY holder_address ASC
Editor is loading...
Leave a Comment