ZookCopy of Top 5 Solana Programs used Year to Date
Updated 2022-07-05
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 transactions as (
select
block_timestamp,
tx_id,
instructions[0]:programId::string as program_id
from solana.core.fact_transactions
where block_timestamp >= '2022-01-01'
and block_timestamp < '2022-02-01'
and SUCCEEDED = 'TRUE'
UNION
select
block_timestamp,
tx_id,
instructions[0]:programId::string as program_id
from solana.core.fact_transactions
where block_timestamp >= '2022-02-01'
and block_timestamp < '2022-03-01'
and SUCCEEDED = 'TRUE'
),
labels as (
SELECT
address,
label
FROM solana.core.dim_labels
)
SELECT
distinct(program_id) as contract,
COALESCE(label, 'Null_label') as label,
Count(tx_id) as nb_times_used
from transactions left join labels on transactions.program_id = labels.address
group by 1,2
order by 3 desc
Run a query to Download Data