Query editor
with csw as (SELECToutput_account as wallet,MIN(call_block_time) as first_registered,chainFROM coinbase_smart_wallet_multichain.coinbasesmartwalletfactory_call_createaccountwhere chain = 'base'GROUP BY output_account, chain),dex_trades as (select block_month,tx_hash,taker as wallet,amount_usdfrom dex.tradesjoin cswon taker = walletwhere block_month >= date '2025-01-01'and(token_bought_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913or token_sold_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)and blockchain = 'base'unionselect block_month,tx_hash,taker as wallet,amount_usdfrom dex.tradesjoin cswon maker = walletwhere block_month >= date '2025-01-01'and(token_bought_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913or token_sold_address = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)and blockchain = 'base')select *,sum(trades) over (order by block_month) as total_trades,sum(vol_usd) over (order by block_month) as total_vol_usdfrom (selectblock_month,count(distinct wallet) as wallets,count(*) as trades,sum(amount_usd) as vol_usdfrom dex_tradesgroup by 1)