pepperatziNew Users Vs Returning Users
    Updated 9 days ago
    with raw as (
    select
    block_timestamp,
    tx_hash,
    from_address,
    left(input, 10) as funct_sig,
    input,
    value,
    output
    from monad.testnet.fact_traces
    where to_address = '0xca810d095e90daae6e867c19df6d9a8c56db2c89'
    and trace_address = 'ORIGIN'
    and tx_succeeded = 'TRUE'
    ),

    native_others as (
    select
    block_timestamp,
    tx_hash,
    from_address,
    regexp_substr_all(substr(input, 11), '.{64}') as segmented_input,
    regexp_substr_all(substr(output, 3), '.{64}') as segmented_output,
    '0x'|| substr(segmented_input[2], 25) as user,
    '0x' || substr(segmented_input[5], 25) as token_in,
    livequery.utils.udf_hex_to_int(segmented_output[2]) as amount_in,
    '0x'|| substr(segmented_input[6], 25) as token_out,
    livequery.utils.udf_hex_to_int(segmented_output[3]) as amount_out,
    from raw
    where funct_sig = '0x7ff36ab5'
    ),

    transfers_native as (
    select
    block_timestamp,
    tx_hash,
    from_address,
    Last run: 9 days ago
    DATE
    NEW_USERS
    RETURNING_USER
    1
    2025-02-17 00:00:00.00010
    2
    2025-02-18 00:00:00.00021
    3
    2025-02-19 00:00:00.0001068437
    4
    2025-02-20 00:00:00.000101494518
    5
    2025-02-21 00:00:00.000120867817
    6
    2025-02-22 00:00:00.0001599812768
    7
    2025-02-23 00:00:00.0001995018873
    8
    2025-02-24 00:00:00.0002065823967
    9
    2025-02-25 00:00:00.0008951957352
    10
    2025-02-26 00:00:00.000182352121405
    11
    2025-02-27 00:00:00.00085663109587
    12
    2025-02-28 00:00:00.0005871175183
    13
    2025-03-01 00:00:00.0004593985200
    14
    2025-03-02 00:00:00.0003434177465
    15
    2025-03-03 00:00:00.0005055288616
    16
    2025-03-04 00:00:00.0004444488200
    17
    2025-03-05 00:00:00.0007210185104
    18
    2025-03-06 00:00:00.0004709277584
    19
    2025-03-07 00:00:00.0003308571656
    20
    2025-03-08 00:00:00.0003342872969
    42
    2KB
    80s