StangFAST01 - overview [ number ]
Updated 2023-08-28
999
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
token_price AS
(
SELECT
date_trunc( 'day' , a.recorded_hour ) AS date
, avg( a.close ) AS price
, a.token_address AS id
, a.symbol AS token
FROM
solana.core.ez_token_prices_hourly a
GROUP BY 1 , 3 , 4
)
,
raw_one AS
(
SELECT
a.block_timestamp AS date_time
, a.tx_id AS tx_id
, a.signers[0] AS user
FROM
solana.core.fact_events a
WHERE
a.block_timestamp >= dateadd( 'day' , -{{number_of_days}} , current_date )
AND a.program_id = 'unpXTU2Ndrc7WWNyEhQWe4udTzSibLPi25SXv2xbCHQ'
AND a.succeeded = 'true'
)
,
raw_tx AS
(
SELECT
a.block_timestamp AS date_time
, a.tx_id AS tx_id
, b.user AS user
, a.index AS index
, a.tx_from AS tx_from
Run a query to Download Data