Query editor
with decodes as (select *from (SELECT-- row_number() OVER (order by t.block_height asc, t.index asc) as ordinal_number,output_value, CASEWHEN regexp_extract(cast(hex as varchar), '(2270223a2022627263363922[\s\S]*?7d27)', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '(2270223a2022627263363922[\s\S]*?7d27)', 1)WHEN regexp_extract(cast(hex as varchar), '(2270223a22627263363922[\s\S]*?7d27)', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '(2270223a22627263363922[\s\S]*?7d27)', 1)END inscribed_hex, CASEWHEN regexp_extract(cast(hex as varchar), '6e3d22(.*?)22', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '6e3d22(.*?)22', 1)end as collection_name_hex, CASEWHEN regexp_extract(cast(hex as varchar), '733d(.*?)20', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '733d(.*?)20', 1)end as supply_hex, CASEWHEN regexp_extract(cast(hex as varchar), '663d(.*?)20', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '663d(.*?)20', 1)end as mint_price_hex, CASEWHEN regexp_extract(cast(hex as varchar), '613d22(.*?)22', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '613d22(.*?)22', 1)end as creator_address_hex, t.block_time as mint_time, t.block_height, t.size, t.virtual_size, t.fee*1e8 as fee, t.fee*1e8/t.virtual_size as sat_per_vbyte, t.output[1].script_pub_key.address as minter_address, t.index, cast(t.id as varchar) as tx_id, t.hexFROM bitcoin.transactions twhere t.block_height >= 820000AND cast(t.hex as varchar) LIKE '%0063036f726401%' -- OP_FALSE (0x00) OP_IF (0x63) OP_PUSHBYTES3 (0x03) "ord" (0x6f7264) OP_1 (0x01) https://docs.ordinals.com/inscriptions.htmland (cast(t.hex as varchar) LIKE '%2f636f6e74656e742f363739363531613835383162623738363961383935646661656134663631666537303661%' -- ordinals launcheror cast(t.hex as varchar) LIKE '%2f636f6e74656e742f36373936353161383538316262373836396%')-- AND t.input[1].witness_data[2] LIKE '%0063036f726401%' AND t.input[1].type = 'witness_v1_taproot' thenthis doesn't wwhenk because of array length checks-- order by ordinal_number desc-- and MOD(length(regexp_extract(cast(hex as varchar), '7b2(?:[^7]|7[^bd])*7d(?=[06])')),2) = 0))select mint_time, collection_name, supply, mint_price, creator_address-- , inscription_id, 'https://ordinals.com/content/' || inscription_id as urlfrom (SELECT mint_time, "RIGHT"(tx_id, length(tx_id)-2) || 'i0' AS inscription_id, try(from_utf8(from_hex(collection_name_hex))) as collection_name, try(from_utf8(from_hex(supply_hex))) as supply, try(from_utf8(from_hex(mint_price_hex))) as mint_price