Updated 2024-02-20

    WITH
    daus as (
    SELECT
    distinct tx_from as users,
    trunc(block_timestamp,'week') as weeks,
    count(distinct trunc(block_timestamp,'day')) as active_days
    from sei.core.fact_transactions
    group by 1,2
    having active_days>=4
    ),
    active_users as (
    SELECT
    trunc(block_timestamp,'week') as date,
    case when tx_from in (select users from daus) then 'DAU'
    else 'No DAU' end as type,
    count(distinct tx_from) as n_users,
    count(distinct tx_id) as txs
    from sei.core.fact_transactions
    where tx_succeeded=TRUE
    group by 1,2
    )
    select * from active_users
    where date <current_date
    order by 1 asc





    Last run: about 1 year ago
    DATE
    TYPE
    N_USERS
    TXS
    1
    2023-05-22 00:00:00.000DAU5016587438
    2
    2023-05-22 00:00:00.000No DAU26160
    3
    2023-05-29 00:00:00.000No DAU35209
    4
    2023-05-29 00:00:00.000DAU5222218935
    5
    2023-06-05 00:00:00.000DAU5219319726
    6
    2023-06-05 00:00:00.000No DAU1532
    7
    2023-06-12 00:00:00.000DAU3720089677
    8
    2023-06-12 00:00:00.000No DAU630
    9
    2023-06-19 00:00:00.000DAU4619714115
    10
    2023-06-19 00:00:00.000No DAU1318
    11
    2023-06-26 00:00:00.000DAU3720426331
    12
    2023-06-26 00:00:00.000No DAU46
    13
    2023-07-03 00:00:00.000DAU3821370690
    14
    2023-07-03 00:00:00.000No DAU48
    15
    2023-07-10 00:00:00.000No DAU215
    16
    2023-07-10 00:00:00.000DAU3921145086
    17
    2023-07-17 00:00:00.000DAU5023632378
    18
    2023-07-17 00:00:00.000No DAU1314
    19
    2023-07-24 00:00:00.000DAU4222397827
    20
    2023-07-24 00:00:00.000No DAU45
    80
    4KB
    356s