jgvfTop 100 Programs in Period by Unique Signers (Excl. System Programs) copy copy copy
Updated 2023-07-15
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
›
⌄
-- forked from Top 100 Programs in Period by Unique Signers (Excl. System Programs) copy copy @ https://flipsidecrypto.xyz/edit/queries/76399f13-89cd-44ec-b032-6904c946c696
-- forked from Top 100 Programs in Period by Unique Signers (Excl. System Programs) copy @ https://flipsidecrypto.xyz/edit/queries/161464d1-1f92-4872-bfa2-13bb9b2a0400
-- forked from marqu / Top 100 Programs in Period by Unique Signers (Excl. System Programs) @ https://flipsidecrypto.xyz/marqu/q/V9OYDwyvKWRD/top-100-programs-in-period-by-unique-signers-excl-system-programs
with
programs as (
select
tx_id,
program_id,
ifnull(label_type, 'unlabeled') as label,
signers[0] as fee_payer,
f.value as signer
from solana.core.fact_events events
inner join lateral flatten (input => signers) f
left join solana.core.dim_labels labels
on events.program_id = labels.address
where succeeded = {{tx_succeeded}}
and (not labels.label = 'solana' or labels.label is null)
and block_timestamp ::date > current_date() - interval '{{days}} days'
),
aggregated as (
select
label,
count(distinct tx_id) as txs,
count(distinct signer) as signers,
count(distinct fee_payer) as fee_payers
from programs
Run a query to Download Data