Query editor
with ethereum as (select date_trunc('week', block_time) as period, 'ethereum' as blockchain, count(*) as transactions, count(distinct "from") as walletsfrom ethereum.transactionswhere successgroup by 1),polygon as (select date_trunc('week', block_time) as period, 'polygon' as blockchain, count(*) as transactions, count(distinct "from") as walletsfrom polygon.transactionswhere successgroup by 1),base as (select date_trunc('week', block_time) as period, 'base' as blockchain, count(*) as transactions, count(distinct "from") as walletsfrom base.transactionswhere successgroup by 1),optimism as (select date_trunc('week', block_time) as period, 'optimism' as blockchain, count(*) as transactions, count(distinct "from") as walletsfrom optimism.transactionswhere successgroup by 1),arbitrum as (select date_trunc('week', block_time) as period, 'arbitrum' as blockchain, count(*) as transactions, count(distinct "from") as walletsfrom arbitrum.transactionswhere successgroup by 1),zksync as (select date_trunc('week', block_time) as period, 'zksync' as blockchain, count(*) as transactions, count(distinct "from") as walletsfrom zksync.transactionswhere successgroup by 1),merged as (select * from ethereumunion allselect * from baseunion allselect * from polygonunion allselect * from optimismunion allselect * from arbitrumunion allselect * from zksync)select period, blockchain, transactions, wallets, transactions/7.0/24/3600 as tpsfrom mergedwhere period < date_trunc('week', current_date)order by period desc,case blockchainwhen 'ethereum' then 1when 'polygon' then 2when 'optimism' then 3when 'arbitrum' then 4when 'zksync' then 5when 'base' then 6