Query editor
WITH monthly_txs AS (SELECTblockchain,date_trunc('month', block_time) AS tx_month,address,count(*)FROM safe.transactions_allWHEREblock_time >= date('2023-01-01') AND block_time <= date('2024-10-01')GROUP BY 1,2,3HAVING COUNT(*) >= {{tx_number}}),active_users AS (SELECTblockchain,tx_month,COUNT(DISTINCT address) AS active_usersFROM monthly_txsGROUP BY 1,2)SELECTcast(tx_month as TIMESTAMP) as month,blockchain,SUM(active_users) AS active_usersFROM active_usersGROUP BY 1,2ORDER BY 1,2