Query editor
WITH base AS (SELECTdate_trunc('day', t.block_date) as block_date,t."from"FROM optimism.traces AS trJOIN optimism.transactions AS tON tr.tx_hash = t.hashWHEREtr."to" = 0x48fbf0b7e6bdaa9d7452feb34507b2bddb148e54 AND tx_success = TRUE),daily AS (SELECTblock_date,COUNT(DISTINCT "from") AS daily_unique_fromFROM baseGROUP BYblock_date),cumulative AS (SELECTdistinct block_date,COUNT(*) OVER (ORDER BY block_date) AS cumulative_unique_fromFROM (SELECT "from", min(block_date) as block_dateFROM basegroup by "from") AS distinct_base)SELECTdaily.block_date,daily.daily_unique_from as daily_active_wallets,cumulative.cumulative_unique_from as total_active_walletsFROM dailyleft JOIN cumulativeON daily.block_date = cumulative.block_dateORDER BYdaily.block_date