yasmin-n-d-r-hsol1
Updated 2022-11-12Copy Reference Fork
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 stake_table as (
select
date_trunc('day', block_timestamp) as date,
count(*) as TX_Count
FROM
solana.core.fact_stake_pool_actions
WHERE
ACTION in (
'deposit', 'deposit_dao_stake', 'deposit_stake',
'deposit_dao_with_referrer', 'deposit_dao'
)
AND SUCCEEDED = 'TRUE'
AND block_timestamp >= CURRENT_DATE - 30
group by
1
),
unstake_table as (
select
date_trunc('day', block_timestamp) as date,
count(*) as TX_Count
FROM
solana.core.fact_stake_pool_actions
WHERE
ACTION in (
'withdraw', 'withdraw_dao', 'withdraw_dao_stake',
'withdraw_stake'
)
AND SUCCEEDED = 'TRUE'
AND block_timestamp >= CURRENT_DATE - 30
group by
1
),
all_table as (
select
date_trunc('day', block_timestamp) as date,
count(*) as TX_Count
Run a query to Download Data