Query editor
selectdate_trunc('week', block_time) as time,casewhen cast(hex as varchar) LIKE '%2270223a226272632d323022%' then 'brc-20'when cast(hex as varchar) LIKE '%0063036f726401%' then 'inscription'else 'normal'end as tx_type,sum(fee) as fees,sum(virtual_size) as vsize,sum(virtual_size)/count(distinct(block_hash)) as vsize_per_block,sum(size) as size,sum(size)/count(distinct(block_hash)) as size_per_block,count(*) as tx_count,count(distinct(block_height)) as block_countfrom bitcoin.transactionswhere block_time > date_trunc('week', cast('2021-12-15' as timestamp))group by 1,2