Sbhn_NPdaily active users by chains
    Updated 2022-12-20
    --credit : Ali3N
    select 'FLOW' as blockchain,
    date_trunc(day,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(day,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(day,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 'Avalanche' as blockchain,
    date_trunc(day,block_timestamp) as date,
    count (distinct from_address) as Users_Count
    from avalanche.core.fact_transactions
    where block_timestamp >= '2022-01-01'
    group by 1,2
    Run a query to Download Data