Query editor
-- Forked from public Dune query 7916729 (author: Dune user 678850).---- DETECTION WINDOW ALIGNED WITH COUNTING WINDOW. The original screened wallets over-- block_date >= 2026-06-30 but counted transactions from 2026-01-01, so a wallet-- that behaved as a bot only before 30 June was never flagged yet fully counted.-- Both windows now start 2026-01-01 (the chain launched 2026-04-30).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 >= DATE '2026-01-01'AND t.success = trueAND fl.wallet IS NULL