bachiOsmo holders1
Updated 2022-07-13
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 stakers as (
SELECT
DISTINCT DELEGATOR_ADDRESS
from
osmosis.core.fact_staking
where
TX_STATUS = 'SUCCEEDED'
),
LPers as (
SELECT
DISTINCT LIQUIDITY_PROVIDER_ADDRESS
from
osmosis.core.fact_liquidity_provider_actions
where
TX_STATUS = 'SUCCEEDED'
and CURRENCY = 'uosmo'
)
SELECT
date(BLOCK_TIMESTAMP) as day,
count(DISTINCT tx_id) as no_of_txns,
sum(no_of_txns) over (
order by
day
) as cumulative_txns,
count(DISTINCT Receiver) as no_of_users,
sum(no_of_users) over (
order by
day
) as cumulative_wallets,
case when Receiver in (
SELECT
DELEGATOR_ADDRESS
from
stakers
) THEN 'Stakers' when Receiver in (
SELECT
Run a query to Download Data