rajsActive Users Txs
    Updated 2022-10-17
    with active_users AS
    (
    SELECT
    *
    FROM
    (
    SELECT
    user,
    count(distinct date) as no_of_active_weeks
    FROM
    (
    SELECT
    -- *
    date_trunc('week', block_timestamp) as date,
    tx_from as user,
    count(distinct block_timestamp::date) as no_of_active_days
    from osmosis.core.fact_transactions
    where tx_from is not null
    -- and block_timestamp >= '2022-01-01'
    group by 1,2
    -- limit 3
    )
    where no_of_active_days >= 4
    group by 1
    order by 2 desc
    )
    where no_of_active_weeks >= 68
    )
    ,

    swappers as
    (
    SELECT
    trader,
    count(distinct tx_id) as no_of_swaps
    from osmosis.core.fact_swaps
    Run a query to Download Data