fb3ce38c-7bfe-475c-bca8-3f1e44ae80a6Bitcoin Ordinals copy
Updated 2024-04-09
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
›
⌄
-- forked from alitaslimi / Bitcoin Ordinals @ https://flipsidecrypto.xyz/alitaslimi/q/gRWJ1PiDhKJV/bitcoin-ordinals
with
raw as (
select
block_timestamp::date as date,
count(distinct block_number) as total_blocks,
count(distinct tx_id) as total_transactions,
sum(size) as total_size
from
bitcoin.core.fact_transactions
where
block_number > 767429
group by
date
),
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
from
bitcoin.core.fact_transactions
where
block_number > 767429
and hex like '%0063036f726401%'
)
select
QueryRunArchived: QueryRun has been archived