SniperBTC Amount
Updated 2023-09-04
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 tb1 as (
select
trunc(block_timestamp::date, 'month') as monthly,
sum(value) as Output_amount,
count(DISTINCT tx_id) as Output_tx,
avg(value) as avg_Output,
sum(Output_amount) over (
order by
monthly asc
) as cum_Output
from
bitcoin.core.fact_outputs
where
PUBKEY_SCRIPT_ADDRESS = 'bc1qw8wrek2m7nlqldll66ajnwr9mh64syvkt67zlu'
group by
1
),
tb2 as (
select
trunc(block_timestamp::date, 'month') as monthly,
sum(value) * -1 as Input_amount,
avg(value) as avg_Input,
count(DISTINCT tx_id) as Input_tx,
sum(Input_amount) over (
order by
monthly asc
) as cum_Input
from
bitcoin.core.fact_inputs
where
PUBKEY_SCRIPT_ADDRESS = 'bc1qw8wrek2m7nlqldll66ajnwr9mh64syvkt67zlu'
group by
1
)
select
a.monthly,
Run a query to Download Data