LTirrell2023-06-30 10:18 PM
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
participants as (
select
block_timestamp,
tx_id,
tx_from as user_address
from
solana.core.fact_transfers
where
tx_to = '9xMX57VgskjJp3ivUnkWZ4qd5is8spMBPUZCnaz3LhG7'
and mint = 'So11111111111111111111111111111111111111112'
and round(amount, 1) = 19.9
and block_timestamp between '2023-06-29 18:00:00.000' and '2023-06-30 18:00:00.000'
)
select
count(tx_id),
count(distinct user_address)
from
participants
-- SELECT
-- tx_id
-- FROM
-- solana.core.fact_events
-- where
-- succeeded
-- and program_id = 'CSGrdwbJ5z58tLGKjjcmiNMj8bG1Zazthk3cXMrbSZoX'
-- and block_timestamp::date >= '2023-06-29 18:00'
-- and instruction:accounts[13] = '86GBq99Qiuq5ZRRcq33QRBT5sM8bTUAjz7owh2BaQCRH'
-- except
-- select tx_id
-- from participants
-- select
-- *,
-- array_size(inner_instruction:instructions)
-- FROM
-- solana.core.fact_events
Run a query to Download Data