Query editor
-- ✅ Active (last 90d) wallets with combined ETH + WETH + LST/LRT holdings >= $10k-- ✅ Excludes: CEX wallets, Market Makers, Smart Contract wallets-- Optimized: balances-first → candidates → activity scan only for candidatesWITHparams AS (SELECTCAST(8000 AS DOUBLE) AS min_usd,now() - interval '90' day AS active_since),/* ---------------------------0) Exclusions----------------------------*/-- Smart contract wallets (LIMIT to reduce scan)contract_wallets AS (SELECT DISTINCT addressFROM ethereum.contractsWHERE address IS NOT NULLLIMIT 1000000 -- Cap the contract list),-- Known CEX deposit addresses (hardcoded major ones)cex_wallets AS (SELECT * FROM (VALUES(0x28c6c06298d514db089934071355e5743bf21d60), -- Binance 14(0x21a31ee1afc51d94c2efccaa2092ad1028285549), -- Binance 15(0xdfd5293d8e347dfe59e90efd55b2956a1343963d), -- Binance 16(0x56eddb7aa87536c09ccc2793473599fd21a8b17f), -- Binance 17(0x9696f59e4d72e237be84ffd425dcad154bf96976), -- Binance 18(0x4e9ce36e442e55ecd9025b9a6e0d88485d628a67), -- Binance 19(0xbe0eb53f46cd790cd13851d5eff43d12404d33e8), -- Binance 20(0xf977814e90da44bfa03b6295a0616a897441acec), -- Binance 8(0x8894e0a0c962cb723c1976a4421c95949be2d4e3), -- Binance Hot(0x3f5ce5fbfe3e9af3971dd833d26ba9b5c936f0be), -- Binance Cold(0xfe9e8709d3215310075d67e3ed32a380ccf451c8), -- Coinbase 1(0x8d12a197cb00d4747a1fe03395095ce2a5cc6819), -- Coinbase EthDev(0x876eabf441b2ee5b5b0554fd502a8e0600950cfa), -- Kraken 1(0xae2d4617c862309a3d75a0ffb358c7a5009c673f), -- Kraken 2(0xd24400ae8bfebb18ca49be86258a3c749cf46853), -- Gate.io Hot(0x1062a747393198f70f71ec65a582423dba7e5ab3), -- Huobi 1(0x6748f50f686bfbca6fe8ad62b22228b87f31ff2b), -- Bitfinex 1(0x4e5b2e1dc63f6b91cb6cd759936495434c7e972f), -- Bittrex 1(0xd4dcd2459bb78d7a645aa7e196857d421b10d93f), -- OKX 1(0xa7efae728d2936e78bda97dc267687568dd593f3) -- OKX 2) AS t(address)),excluded_wallets AS (SELECT address FROM contract_walletsUNION ALLSELECT address FROM cex_wallets),/* ---------------------------1) Token universe----------------------------*/token_list AS (SELECT * FROM (