Query editor
withBASE as( select "from" as address, hash, date_trunc('day', block_time) as day from base.transactions union allselect "to" as address, hash, date_trunc('day', block_time) as day from base.transactions ),ARB as( select "from" as address, hash, date_trunc('day', block_time) as day from arbitrum.transactions union allselect "to" as address, hash, date_trunc('day', block_time) as day from arbitrum.transactions ),OP as( select "from" as address, hash, date_trunc('day', block_time) as day from optimism.transactions union allselect "to" as address, hash, date_trunc('day', block_time) as day from optimism.transactions ),A as( select 'Base' as L2, * from BASE union allselect 'Arbitrum' as L2, * from ARB union allselect 'Optimism' as L2, * from OP),B as( select day, L2, count(distinct address) as active_user, count(distinct hash) as daily_transactionsfrom Agroup by 1,2order by 1 desc )select *from Bwhere date(day) >= date('2023-07-10') and date(day) < date(now())order by day desc