Query editor
/* MAGIC Contract: 0x539bde0d7dbd336b79148aa742883198bbf60342 *//* MAGIC Transfer Topic: 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef */WITHusers_transaction AS (SELECTblock_time,topic1 AS addressFROMarbitrum.logsWHEREcontract_address = 0x539bde0d7dbd336b79148aa742883198bbf60342AND topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efUNIONSELECTblock_time,topic2 AS addressFROMarbitrum.logsWHEREcontract_address = 0x539bde0d7dbd336b79148aa742883198bbf60342AND topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef),new_users_date AS (SELECTaddress,MIN(block_time) AS min_block_timeFROMusers_transactionGROUP BYaddressORDER BY2 NULLS FIRST),new_users_weekly AS (SELECTDATE_TRUNC('week', min_block_time) AS block_date,COUNT(DISTINCT address) AS new_users_countFROMnew_users_dateGROUP BY1ORDER BY1 NULLS FIRST)SELECTblock_date,new_users_count,SUM(new_users_count) OVER (ORDER BYblock_date NULLS FIRST) AS accumulate_new_users_countFROMnew_users_weeklyORDER BYblock_date NULLS FIRST