nsa2000Average number of active users per month
    Updated 2022-12-18
    -- credit to Ali3N
    with maintable as (
    select 'FLOW' as blockchain,
    date_trunc(month,block_timestamp) as date,
    count (distinct proposer) as Users_Count
    from flow.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1,2

    union ALL

    select 'Ethereum' as blockchain,
    date_trunc(month,block_timestamp) as date,
    count (distinct from_address) as Users_Count
    from ethereum.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1,2

    union ALL

    select 'Solana' as blockchain,
    date_trunc(month,block_timestamp) as date,
    count (distinct signers[0]) as Users_Count
    from solana.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1,2

    union ALL

    select 'Binance Smart Chain' as blockchain,
    date_trunc(month,block_timestamp) as date,
    count (distinct from_address) as Users_Count
    from bsc.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1,2

    Run a query to Download Data