Afonso_DiazUntitled Query
Updated 2023-01-28
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
with t as (
select
block_timestamp::date as day,
action,
count(distinct tx_id) as txns_count,
count(distinct delegator_address) as users_count,
sum(amount/1e6) as volume
from osmosis.core.fact_staking
where tx_succeeded = 1
and block_timestamp > current_date - interval '6 months'
group by 1, 2
)
select
action,
avg(users_count) as average_users_count,
avg(txns_count) as average_txns_count,
avg(volume) as average_volume
from t
group by 1
Run a query to Download Data