Query editor
-- ============================================================================-- QUERY 7: 🕵️ Insider Ring Radar-- Part A: Deploy snipers — wallets buying within minutes of contract deploy,-- repeatedly across many tokens.-- Part B: Funding clusters — groups of early buyers funded by the same-- wallet shortly before their buy.---- Heuristic pattern-matching, NOT proof of coordination. Present as-- "patterns observed," never as accusations.---- DRAFT — not yet executed on Dune.-- ============================================================================-- ============================================================================-- PART A: 🎯 Deploy Snipers-- ============================================================================with token_first_buys as (-- first buy per wallet per token, robinhood chain onlyselecttx_from as wallet, token_bought_address as token_address, min(block_time) as first_buy_timefrom dex.tradeswhere blockchain = 'robinhood'and amount_usd > 0and token_bought_amount > 0group by 1, 2), deploys as (-- contracts deployed on robinhood that later show up as a traded token.-- Deduped to one row per address: creation_traces has no `success`-- field and nothing guarantees exactly one row per deployed address-- (e.g. a CREATE2 redeploy at the same address), so an inner join on-- token_address alone could fan out.selecttoken_address, deploy_timefrom (selectc.address as token_address, c.block_time as deploy_time, row_number() over (partition by c.address order by c.block_time asc) as rnfrom robinhood.creation_traces as cwhere c.address in (select distinct token_bought_address from dex.trades where blockchain = 'robinhood'))where rn = 1), snipes as (selectb.wallet, b.token_address, d.deploy_time, b.first_buy_time, date_diff('second', d.deploy_time, b.first_buy_time) / 60.0 as minutes_after_deploy