Query editor
WITHdailyTxs AS (SELECTDATE(block_time) AS block_date,COUNT(DISTINCT hash) AS unique_txs,SUM(total_fees) / 1e9 AS totalFeesFROMton.transactionsWHEREblock_time IS NOT NULLGROUP BYDATE(block_time)),dailyUsers AS (SELECTblock_date,COUNT(DISTINCT destination) AS numberOfUsersFROMton.messagesWHEREsource is NULLGROUP BYblock_date),daily_token_deployments AS (SELECTdate_trunc('day', from_unixtime(update_time_onchain)) AS deployment_date,COUNT(DISTINCT address) AS unique_jettons_deployedFROMquery_4428187GROUP BYdate_trunc('day', from_unixtime(update_time_onchain))),firstUserOccurrences AS (SELECTdestination AS account,MIN(block_date) AS firstActivityDateFROMton.messagesWHEREsource is NULLGROUP BYdestination),newUsers AS (SELECTfirstActivityDate,COUNT(Distinct account) AS numberOfNewUsersFROMfirstUserOccurrencesGROUP BYfirstActivityDate)SELECTdailyTxs.block_date,unique_txs,numberOfUsers,numberOfNewUsers,numberOfUsers - numberOfNewUsers AS numberOfReturningUsers,totalFees,