Query editor
select block_height - block_height % 5000 as block_height, CASE WHEN substr(script_hex,3,4) = 0x6f6d6e69 THEN 'omni' -- 'omni'WHEN substr(script_hex,3,2) = 0x4D47 THEN 'monograph' -- 'MG'WHEN substr(script_hex,3,7) = 0x41534352494245 THEN 'ascribe' -- 'ASCRIBE'WHEN substr(script_hex,3,4) = 0x4f410100 THEN 'open-assets' -- 'OA' + versionWHEN substr(script_hex,3,3) between 0x434301 and 0x434302 THEN 'colu' -- 'CC' + versionWHEN substr(script_hex,3,3) = 0x53504B THEN 'coinspark' -- 'SPK'WHEN substr(script_hex,3,2) IN (0x4641,0x4661) THEN 'factom' -- 'Fa'/'FA'WHEN substr(script_hex,3,2) between 0x5331 and 0x5336 THEN 'stampery' -- 'S[1-6]'WHEN substr(script_hex,3,7) = 0x436861696E583A THEN 'ChainX' -- 'ChainX:'WHEN substr(script_hex,3,4) = 0x504F4554 THEN 'po.et' -- 'POET'WHEN substr(script_hex,-4) = 0x4B4D4400 THEN 'komodo' -- suffix: 'KMD' + 0x00WHEN substr(script_hex,3,2) = 0x6964 -- 'id'and block_height < 666050 THEN 'blockstack'WHEN varbinary_position(script_hex, 0x5832) between 3 and 4 -- 'X2'and block_height >= 666050 THEN 'stacks-v2'WHEN length(script_hex) = 83and substr(script_hex,8,2) between 0x0001 and 0x000f -- versionand abs(to_unixtime(block_time) - varbinary_to_integer(substr(script_hex,56,4))) < 100e3THEN 'veriblock'-- ELSE to_hex(substr(script_hex,3,4))ELSE 'other'END as protocol, count(*) as outputsfrom bitcoin.outputs oxleft join lateral (select is_coinbase from bitcoin.transactions txwhere tx.id = ox.tx_id) tx ON TRUEwhere starts_with(script_hex, 0x6a)and length(script_hex) >= 8and not is_coinbasegroup by 1, 2-- having count(*) > 100order by 1, 2