adriaparcerisassolana price 13
    Updated 2023-06-26

    with
    t1 as (
    select
    address_name as protocol,
    count(distinct signers[0]) as users,
    sum(1) as transactions
    from solana.core.fact_events x
    join solana.core.dim_labels y on x.program_id=y.address
    where trunc(block_timestamp,'day')=current_date - interval '1 MONTH' and label_type='dex'
    group by 1 order by 1 asc
    ),
    t2 as (
    select
    address_name as protocol,
    count(distinct signers[0]) as users,
    sum(1) as transactions
    from solana.core.fact_events x
    join solana.core.dim_labels y on x.program_id=y.address
    where trunc(block_timestamp,'day')=current_date - 1 and label_type='dex'
    group by 1 order by 1 asc
    )
    SELECT
    t1.protocol,
    t2.transactions/t1.transactions as txs_growth,
    t2.users/t1.users as users_growth
    from t1 join t2 on t1.protocol=t2.protocol
    where t1.transactions >1000
    order by 2 desc




    Run a query to Download Data