Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/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, 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, t.id as tx_id-- , from_utf8(from_hex(regexp_extract(cast(hex as varchar), '(?<=7b).*?(?=7d)'))) as test2--, regexp_extract(cast(hex as varchar), '7b2(?:[^7]|7[^bd])*7d') as test2--, from_hex(regexp_extract(cast(hex as varchar), '7b2(?:[^7]|7[^bd])*7d')) as test3-- , from_utf8(from_hex(regexp_extract(cast(hex as varchar), '7b2(?:[^7]|7[^bd])*7d(?=[06])'))) as test4/*, case when regexp_extract(cast(hex as varchar), '2273223a2022([0-9a-fA-F]*?)22', 1) is not null then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '2273223a2022([0-9a-fA-F]*?)22', 1)))when regexp_extract(cast(hex as varchar), '2273223a22([0-9a-fA-F]*?)22', 1) is not null then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '2273223a22([0-9a-fA-F]*?)22', 1)))end mint_slug, case when regexp_extract(cast(hex as varchar), '22736c7567223a2022([0-9a-fA-F]*?)22', 1) is not null then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '22736c7567223a2022([0-9a-fA-F]*?)22', 1)))when regexp_extract(cast(hex as varchar), '22736c7567223a2022([0-9a-fA-F]*?)22', 1) is not null then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '22736c7567223a2022([0-9a-fA-F]*?)22', 1)))end deploy_slug*/, CASEWHEN regexp_extract(cast(hex as varchar), '4c51([0-9a-fA-F]*?)2d2d3e', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '4c51([0-9a-fA-F]*?)2d2d3e', 1)END domain_name_hex, CASEWHEN regexp_extract(cast(hex as varchar), '2d2d3e([0-9a-fA-F]*?)6821c', 1) IS NOT NULL THEN regexp_extract(cast(hex as varchar), '2d2d3e([0-9a-fA-F]*?)6821c', 1)END target_inscription_hex/*, case when regexp_extract(cast(hex as varchar), '226964223a2022([0-9a-fA-F]*?)22', 1) is not null then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '226964223a2022([0-9a-fA-F]*?)22', 1)))when regexp_extract(cast(hex as varchar), '226964223a22([0-9a-fA-F]*?)22', 1) is not null then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '226964223a22([0-9a-fA-F]*?)22', 1)))end mint_id*//*, case when cast(t.hex as varchar) like '%6465706c6f79%' then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '22736c7567223a2022([0-9a-fA-F]*?)22|22736c7567223a2022([0-9a-fA-F]*?)22', 1))) -- to be double checkedwhen cast(t.hex as varchar) like '%6d696e74%' then from_utf8(from_hex(regexp_extract(cast(hex as varchar), '2273223a2022([0-9a-fA-F]*?)22|2273223a22([0-9a-fA-F]*?)22', 1))) -- to be double checkedelse 'other' end as slug*/, t.hex-- , cast(t.hex as varchar) hex_hex--, to_hex(t.hex) as hex_hexFROM bitcoin.transactions twhere t.block_height >= 809000-- where t.block_height >= 79400AND 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 '%2e6f7264692d2d3e%' -- .ordi-->-- 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