alitaslimiOrdinal Types Overview
Updated 2025-01-19
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with
ordinals as (
select
block_timestamp,
block_number,
tx_id,
fee, -- BTC
input_value,
output_value,
size, -- Byte
virtual_size, -- vByte
fee * pow(10, 8) / virtual_size as fee_rate, -- sat/vB,
outputs[0]:scriptPubKey:address as minter,
hex,
regexp_instr(hex, '0063036f72640101') as starting_point,
substr(hex, starting_point + 16, 2) as bytes_pushed,
ethereum.public.udf_hex_to_int(bytes_pushed) as content_length,
substr(hex, starting_point + 18, content_length * 2) as content_hex,
try_hex_decode_string(content_hex) as content,
split_part(content, '/', 1) as content_type,
split_part(content, '/', 2) as content_subtype
from
bitcoin.core.fact_transactions
where
block_number > 767429
and hex like '%0063036f726401%'
)
select
content_type as "Type",
count(distinct tx_id) as "Inscriptions",
count(distinct minter) as "Minters",
sum(fee) as "Fees"
from
ordinals
group by
"Type"
Auto-refreshes every 6 hours
QueryRunArchived: QueryRun has been archived