Query editor
-- Robinhood Chain: daily active addresses + cumulative unique addresses.-- Single scan collapsed to distinct (address, day) pairs, reused for both metrics.---- Now excludes ArbOS per-block system txs and failed txs, so this shares a-- definition with the bot-filtered address counters. Previously it counted every-- sender including the ArbOS system address, giving the dashboard two different-- notions of "active address". The NULL-safe predicate keeps contract deployments.WITH addr_day AS (SELECT"from" AS addr,block_date AS dayFROM robinhood.transactionsWHERE success = trueAND ("to" IS NULL OR "to" <> 0x00000000000000000000000000000000000a4b05)GROUP BY 1, 2),daily_active AS (SELECT day, count(*) AS active_addressesFROM addr_dayGROUP BY 1),new_per_day AS (SELECT first_day AS day, count(*) AS new_addressesFROM (SELECT addr, min(day) AS first_day FROM addr_day GROUP BY 1)GROUP BY 1)SELECTd.day,d.active_addresses,coalesce(n.new_addresses, 0) AS new_addresses,sum(coalesce(n.new_addresses, 0)) OVER (ORDER BY d.day) AS cumulative_addressesFROM daily_active dLEFT JOIN new_per_day n ON n.day = d.dayORDER BY d.day