AlexaySolana programs that paid most fees
Updated 2022-07-13Copy 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 total AS(
(SELECT
PROGRAM_ID,
COUNT(DISTINCT tx_id) as tx_count
FROM solana.core.fact_events
WHERE SUCCEEDED = 'FALSE'
and block_timestamp::date BETWEEN '2022-05-01' and '2022-06-01'
GROUP BY 1
)
UNION ALL
(SELECT
PROGRAM_ID,
COUNT(DISTINCT tx_id) as tx_count
FROM solana.core.fact_events
WHERE SUCCEEDED = 'FALSE'
and block_timestamp::date BETWEEN '2022-06-01' and '2022-07-01'
GROUP BY 1
)
UNION ALL
(SELECT
PROGRAM_ID,
COUNT(DISTINCT tx_id) as tx_count
FROM solana.core.fact_events
WHERE SUCCEEDED = 'FALSE'
and block_timestamp::date BETWEEN '2022-07-01' and '2022-07-13'
GROUP BY 1
)
)
SELECT
PROGRAM_ID,
((5549.00694 * sum(tx_count) / POW(10, 9))) AS total_fee
FROM total
GROUP BY 1
ORDER by 2 DESC
Run a query to Download Data