Query editor
-- Base | Contract: 0xd344E886856a31B6594337E51A6EEfC07Dd5d1dbWITH tx AS (SELECTdate_trunc('day', block_time) AS day,"from"FROM base.transactionsWHERE "to" = 0xd344E886856a31B6594337E51A6EEfC07Dd5d1db),-- First day each wallet interactedfirst_touch AS (SELECT"from",MIN(day) AS first_dayFROM txGROUP BY 1),-- Count of brand-new wallets per daynew_by_day AS (SELECTfirst_day AS day,COUNT(*) AS new_walletsFROM first_touchGROUP BY 1),-- Distinct active creators per dayactivity_by_day AS (SELECTday,COUNT(DISTINCT "from") AS creators_dailyFROM txGROUP BY 1),-- Total distinct wallets overall (repeated on every row)tot AS (SELECT COUNT(DISTINCT "from") AS total_unique_walletsFROM tx)SELECTa.day,a.creators_daily,COALESCE(n.new_wallets, 0) AS new_wallets,-- Running cumulative unique wallets (day over day)SUM(COALESCE(n.new_wallets, 0)) OVER (ORDER BY a.dayROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS cumulative_unique_wallets,t.total_unique_walletsFROM activity_by_day aLEFT JOIN new_by_day nON n.day = a.dayCROSS JOIN tot tORDER BY a.day;