Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].WITHsub AS (SELECTDATE_TRUNC('month', block_time) AS month,'Ethereum' AS network,COUNT(DISTINCT "from") AS active_addresses,COUNT(DISTINCT hash) AS transactionsFROMethereum.transactionsWHEREblock_time >= CAST(date '2022-06-01' AS TIMESTAMP)AND block_time < CURRENT_DATEAND successGROUP BY1UNION ALLSELECTDATE_TRUNC('month', block_time) AS month,'Polygon' AS network,COUNT(DISTINCT "from") AS active_addresses,COUNT(DISTINCT hash) AS transactionsFROMpolygon.transactionsWHEREblock_time >= CAST(date '2022-06-01' AS TIMESTAMP)AND block_time < CURRENT_DATEAND successGROUP BY1UNION ALLSELECTDATE_TRUNC('month', block_date) AS month,'Solana' AS network,COUNT(DISTINCT ELEMENT_AT(account_keys, 1)) AS active_addresses,COUNT(*) AS transactionsFROMsolana.transactionsWHEREblock_date >= CAST(date '2022-06-01' AS TIMESTAMP)AND block_date < CURRENT_DATEAND successGROUP BY1UNION ALLSELECTDATE_TRUNC('month', block_time) AS month,'Arbitrum' AS network,COUNT(DISTINCT "from") AS active_addresses,COUNT(DISTINCT hash) AS transactionsFROMarbitrum.transactionsWHEREblock_time >= CAST(date '2022-06-01' AS TIMESTAMP)AND block_time < CURRENT_DATEAND successGROUP BY