Query editor
-- Forked from public Dune query 7916733 (author: Dune user 678850).---- DETECTION WINDOW WIDENED TO ALL HISTORY. The original screened wallets only over-- block_date >= 2026-06-30, so a wallet whose bot-like behaviour predates that-- window went unflagged. Screening now spans 2026-01-01 onward (chain launched-- 2026-04-30) while the count itself remains the trailing 24 hours.WITH wallet_stats AS (SELECT"from" AS wallet,COUNT(*) AS txs,COUNT(DISTINCT block_date) AS days_active,COUNT(*) / CAST(COUNT(DISTINCT block_date) AS DOUBLE) AS avg_txs_per_day,COUNT(DISTINCT DATE_TRUNC('hour', block_time)) / CAST(COUNT(DISTINCT block_date) AS DOUBLE) AS avg_hours_per_dayFROM robinhood.transactionsWHERE block_date >= DATE '2026-01-01'AND success = trueGROUP BY 1),flagged AS (SELECT walletFROM wallet_statsWHERE avg_txs_per_day > 300OR (avg_hours_per_day > 18 AND days_active >= 3)OR wallet = 0x1925f52cea3bb3e1b4958dad50346b3c34a98b44)SELECTCOUNT(DISTINCT t."from") AS active_addresses,COUNT(*) AS transactionsFROM robinhood.transactions tLEFT JOIN flagged fl ON t."from" = fl.walletWHERE t.block_date >= CURRENT_DATE - INTERVAL '1' DAYAND t.block_time >= NOW() - INTERVAL '24' HOURAND t.success = trueAND fl.wallet IS NULL