jackguy2023-08-21 11:37 AM
Updated 2023-10-18
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
›
⌄
-- forked from mnde 11 @ https://flipsidecrypto.xyz/edit/queries/be7f991e-1aa5-4eaf-8e41-78aef9c85da8
with tab1 as (
SELECT
tx_id
FROM solana.core.fact_events
WHERE INSTRUCTION:parsed:info:authorized:staker LIKE 'noMa7dN4cHQLV4ZonXrC29HTKFpxrpFbDLK5Gub8W8t'
and block_timestamp > '2023-7-18'
), tab2 as (
SELECT
DISTINCT INSTRUCTION['parsed']['info']['newAccount']
FROM solana.core.fact_events
WHERE tx_id in (SELECT * from tab1)
and block_timestamp > '2023-7-18'
AND event_type LIKE 'createAccount'
)
SELECT
count(DISTINCT signers[0]) as wallets
FROM solana.core.fact_events
WHERE event_type LIKE 'withdraw'
AND INSTRUCTION:parsed:info:stakeAccount in (SELECT * from tab2)
AND block_timestamp > '2023-7-18'
Run a query to Download Data