kiacryptoactive wallets
    Updated 2022-12-18
    select
    date_trunc('month', block_timestamp) as monthly,
    count(distinct proposer) as unique_active_wallet,
    lag(unique_active_wallet,1) over(order by monthly) as previous_unique_active_wallet,
    ((unique_active_wallet - previous_unique_active_wallet) / previous_unique_active_wallet) * 100 as change_unique_active_wallet,
    'Flow' as blockchain
    from flow.core.fact_transactions
    where block_timestamp::date >= '2022-01-01'
    group by 1

    union all
    select
    date_trunc('month', block_timestamp) as monthly,
    count(distinct from_address) as unique_active_wallet,
    lag(unique_active_wallet,1) over(order by monthly) as previous_unique_active_wallet,
    ((unique_active_wallet - previous_unique_active_wallet) / previous_unique_active_wallet) * 100 as change_unique_active_wallet,
    'Ethereum' as blockchain
    from ethereum.core.fact_transactions
    where block_timestamp::date >= '2022-01-01'
    group by 1

    union all

    select
    date_trunc('month', block_timestamp) as monthly,
    count(distinct tx_sender) as unique_active_wallet,
    lag(unique_active_wallet,1) over(order by monthly) as previous_unique_active_wallet,
    ((unique_active_wallet - previous_unique_active_wallet) / previous_unique_active_wallet) * 100 as change_unique_active_wallet,
    'Algorand' as blockchain
    from algorand.core.fact_transaction
    where block_timestamp::date >= '2022-01-01'
    group by 1

    union all

    Run a query to Download Data