Afonso_Diaztotal data per activity
Updated 2023-01-30
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 t1 as (
select
tx_id,
receiver
from osmosis.core.fact_transfers
where tx_succeeded = 1
and transfer_type = 'IBC_TRANSFER_IN'
and block_timestamp >= '2022-11-01'
and currency = 'ibc/AB589511ED0DD5FA56171A39978AFBF1371DB986EC1C3526CE138A16377E39BB'
)
select
'Transfer' as type,
count(distinct t2.tx_id) as txns_count,
count(distinct sender) as users_count
from osmosis.core.fact_transfers t2
join t1 on t2.sender = t1.receiver
where not exists (select * from t1 where t1.tx_id = t2.tx_id)
and block_timestamp >= '2022-11-01'
group by 1
union
select
'Swap' as type,
count(distinct t2.tx_id) as txns_count,
count(distinct trader) as users_count
from osmosis.core.fact_swaps t2
join t1 on t2.trader = t1.receiver
where block_timestamp >= '2022-11-01'
group by 1
union
select
'Liquidity' as type,
Run a query to Download Data