Query editor
-- OPcode translator - https://wiki.bitcoinsv.io/index.php/Opcodes_used_in_Bitcoin_Script-- SELECT to_hex(to_utf8('ord')) = 6F7264-- starting_point: regexp_position(cast(hex as varchar), '0063036f72640101')-- bytes_pushed: substring(cast(hex as varchar), regexp_position(cast(hex as varchar), '0063036f72640101') + 16, 2) => the next 2 char after the envelope represents the bytes pushed in Ordinals OPcodeWITH base as(SELECTdate_trunc('week', block_time) as week, split(from_utf8(from_hex(substring( -- converting hex -> human readablecast(hex as varchar),regexp_position(cast(hex as varchar), '0063036f72640101') + 18,bytearray_to_integer('0x' || substring(cast(hex as varchar), regexp_position(cast(hex as varchar), '0063036f72640101') + 16, 2)) * 2))), '/')[1] as content_type, count(*) as num_mintsFROM bitcoin.transactionsWHERE cast(hex as varchar) LIKE '%0063036f72640101%'GROUP BY 1, 2)SELECTweek, num_mints, CASE WHEN content_type IN('audio','image','text','model','application','video') THEN content_typeelse 'other' end as content_typeFROM base