Flipside Community2) bitcoin acquired users
Updated 2023-12-07
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with t1 as (select
PUBKEY_SCRIPT_ADDRESS as address,
count(distinct tx_id) as n_tx
from bitcoin.core.fact_outputs
group by 1
)
select address
from t1
where n_tx >= 2 -- acquired users aka came back for at least a second transaction
-- addresses with tx
-- with first_transaction as
-- (
-- select PUBKEY_SCRIPT_ADDRESS, min(block_timestamp) as first_time
-- from bitcoin.core.fact_outputs
-- group by PUBKEY_SCRIPT_ADDRESS
-- )
-- select substr(date_trunc('year',first_time),0,4) as year, count(distinct PUBKEY_SCRIPT_ADDRESS) as Number_of_users, sum(Number_of_users) over (order by year asc) as cummulative_users
-- from first_transaction
-- group by year
-- order by year desc
Run a query to Download Data