elsinaDaily Polygon active wallets
    Updated 2022-07-31
    WITH
    active_users_n as (
    SELECT
    trunc(block_timestamp,'day') as date,
    count(distinct from_address) as active_users
    from polygon.core.fact_transactions
    group by 1
    ),
    active_users_2_n as (
    SELECT
    trunc(block_timestamp,'day') as date,
    count(distinct to_address) as active_users
    from polygon.core.fact_transactions
    group by 1
    )
    select 'Doing transactions' as type,* from active_users_n
    UNION
    select 'Receiving tokens' as type,* from active_users_2_n

    order by date
    Run a query to Download Data