Query editor
SELECT-- date_trunc('day', block_date) as time,(CASEWHEN cast(hex AS VARCHAR) NOT LIKE '%0063036f726401%' then '1. non-ordinals'WHEN cast(hex AS VARCHAR) LIKE '%6272632d3230%' then '3. brc-20'WHEN cast(hex AS VARCHAR) LIKE '%6f72632d3230%' then '4. orc-20'WHEN cast(hex AS VARCHAR) LIKE '%7372632d3230%' then '5. src-20'WHEN cast(hex AS VARCHAR) LIKE '%6272632d373231%' then '6. brc-721'ELSE '2. other-ordinals'END) as type,count(*) as total_txs,sum((case when cast(hex AS VARCHAR) LIKE '%0a2020226f70223a20226465706c6f7922%' then 1 else 0 end)) as deployed,sum((case when cast(hex AS VARCHAR) LIKE '%226f70223a226d696e74222c%' then 1 else 0 end)) as minted,sum(fee) as fee,sum(size) as size,min(block_date) as first_appearFROM bitcoin.transactionsWHERE date(block_date) >= date(CAST('{{date}}' as TIMESTAMP))GROUP BY 1ORDER BY 1 asc