Eman-RazInteraction with Dapps
    Updated 7 days ago
    with tab1 as (select signers[0] as user, count(distinct program_id), CASE
    when count(distinct program_id)=1 then 'n=1'
    when count(distinct program_id)=2 then 'n=2'
    when count(distinct program_id)=3 then 'n=3'
    when count(distinct program_id)=4 then 'n=4'
    when count(distinct program_id)=5 then 'n=5'
    when count(distinct program_id)=6 then 'n=6'
    when count(distinct program_id)=7 then 'n=7'
    when count(distinct program_id)=8 then 'n=8'
    when count(distinct program_id)=9 then 'n=9'
    when count(distinct program_id)=10 then 'n=10'
    when count(distinct program_id)>10 then 'n>10'
    end as "Number of Dapps"
    from eclipse.core.fact_events
    where succeeded='TRUE' and program_id not in (
    '11111111111111111111111111111111',
    'ComputeBudget111111111111111111111111111111',
    'BPFLoaderUpgradeab1e11111111111111111111111',
    'Stake11111111111111111111111111111111111111',
    'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
    'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
    'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA')
    group by 1)

    select "Number of Dapps", count(distinct user) as "Number of Users"
    from tab1
    group by 1
    order by 2




    Last run: 7 days ago
    Number of Dapps
    Number of Users
    1
    n=1021081
    2
    n=926780
    3
    n=636911
    4
    n=839925
    5
    n=740225
    6
    n=547063
    7
    n=448090
    8
    n>1058865
    9
    n=375745
    10
    n=281820
    11
    n=1564657
    11
    158B
    560s