hessWeekly New Vs. Old Users
    Updated 2025-03-16
    with users as ( select block_timestamp,
    tx_from as user
    from axelar.core.fact_transactions
    UNION all
    select BLOCK_TIMESTAMP,
    SENDER as user
    from axelar.core.fact_transfers
    UNION all
    select CREATED_AT as block_timestamp,
    sender_address as user
    from axelar.axelscan.fact_transfers
    UNION all
    select block_timestamp,
    ATTRIBUTE_VALUE as user
    from axelar.core.fact_msg_attributes
    where ATTRIBUTE_KEY in ('fee_payer','sender')
    )
    ,
    new as ( select min(block_timestamp) as day,
    user
    from users
    group by 2)
    ,
    new_users as ( select trunc(day,'week') as date,
    count(DISTINCT user) as new_users
    from new
    group by 1)
    ,
    total as ( select trunc(block_timestamp,'week') as date,
    count(DISTINCT user) as users
    from users
    group by 1 )

    select a.date,
    users,
    new_users as "New Address",
    Last run: about 1 month ago
    DATE
    USERS
    New Address
    Active Address
    1
    2021-12-20 00:00:00.00023230
    2
    2021-12-27 00:00:00.00019109
    3
    2022-01-03 00:00:00.000554213
    4
    2022-01-10 00:00:00.00021015951
    5
    2022-01-17 00:00:00.00021213577
    6
    2022-01-24 00:00:00.0001218212013169
    7
    2022-01-31 00:00:00.00019258181631095
    8
    2022-02-07 00:00:00.00034842329211921
    9
    2022-02-14 00:00:00.00042494398872607
    10
    2022-02-21 00:00:00.00046441428763565
    11
    2022-02-28 00:00:00.00032618306411977
    12
    2022-03-07 00:00:00.00019585185721013
    13
    2022-03-14 00:00:00.000926379991264
    14
    2022-03-21 00:00:00.000477637641012
    15
    2022-03-28 00:00:00.000461433591255
    16
    2022-04-04 00:00:00.000434229711371
    17
    2022-04-11 00:00:00.000278917881001
    18
    2022-04-18 00:00:00.000246914671002
    19
    2022-04-25 00:00:00.0001947965982
    20
    2022-05-02 00:00:00.00025851756829
    ...
    169
    7KB
    55s