kiacryptoNumber of unique users
    Updated 2022-11-14
    select
    'stake' as type,
    count(distinct address) as unique_user
    from solana.core.fact_stake_pool_actions
    where
    block_timestamp::date >= current_date - 7 and
    action ilike '%deposit%' and
    succeeded = 'TRUE'

    union all

    select
    'Unstake' as type,
    count(distinct address) as unique_user
    from solana.core.fact_stake_pool_actions
    where
    block_timestamp::date >= current_date - 7 and
    (action ilike '%unstake%' or action ilike '%withdraw%') and
    succeeded = 'TRUE'


    Run a query to Download Data