Query editor
-- Forked from public Dune query 7916628 (author: Dune user 678850).-- Daily active wallets split new vs returning, excluding likely automated wallets.---- DETECTION WINDOW WIDENED TO ALL HISTORY. The original screened wallets only over-- block_date >= 2026-06-30 while charting from that same date -- but a wallet whose-- bot-like behaviour predates the window still went unflagged on the days it was-- charted. Screening now spans 2026-01-01 onward; the chart window is unchanged.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 block_date < CURRENT_DATEAND 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),first_seen AS (SELECT"from" AS wallet,MIN(block_date) AS first_dateFROM robinhood.transactionsWHERE block_date >= DATE '2026-01-01'AND success = trueGROUP BY 1),daily_active AS (SELECT DISTINCTt.block_date AS day,t."from" AS walletFROM robinhood.transactions tLEFT JOIN flagged flON t."from" = fl.walletWHERE t.block_date >= DATE '2026-06-30'AND t.block_date < CURRENT_DATEAND t.success = trueAND fl.wallet IS NULL)SELECTd.day,CASE WHEN f.first_date = d.day THEN 'new' ELSE 'returning' END AS wallet_type,COUNT(*) AS walletsFROM daily_active dJOIN first_seen f ON f.wallet = d.walletGROUP BY 1, 2ORDER BY 1, 2