rajsActive Users Txs
Updated 2022-10-17
999
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 active_users AS
(
SELECT
*
FROM
(
SELECT
user,
count(distinct date) as no_of_active_weeks
FROM
(
SELECT
-- *
date_trunc('week', block_timestamp) as date,
tx_from as user,
count(distinct block_timestamp::date) as no_of_active_days
from osmosis.core.fact_transactions
where tx_from is not null
-- and block_timestamp >= '2022-01-01'
group by 1,2
-- limit 3
)
where no_of_active_days >= 4
group by 1
order by 2 desc
)
where no_of_active_weeks >= 68
)
,
swappers as
(
SELECT
trader,
count(distinct tx_id) as no_of_swaps
from osmosis.core.fact_swaps
Run a query to Download Data