feyikemiAxelar User Interaction
    Updated 2024-04-18
    with new_users AS
    (SELECT
    tx_from,
    min(block_timestamp) as first_tx_timestamp
    FROM
    axelar.core.fact_transactions
    GROUP by tx_from
    )

    SELECT
    date_trunc('week', first_tx_timestamp) as week,
    'New Users' as type,
    count(tx_from) as users_Count
    FROM
    new_users
    GROUP BY week, type

    UNION ALL

    SELECT
    date_trunc('week', block_timestamp) as week,
    'Returning Users' as type,
    count(DISTINCT tx_from) as users_Count
    FROM
    axelar.core.fact_transactions
    GROUP BY week


    QueryRunArchived: QueryRun has been archived