Updated 10 days ago
    with tab1 as (
    SELECT
    date(block_timestamp) as date,
    count(DISTINCT TRIM(SPLIT_PART(SPLIT_PART(fee_msg['transition']['outputs'][0]['value'], '[', 2), ',', 1))) as active_wallets
    from aleo.core.fact_transactions
    where tx_succeeded
    GROUP BY 1
    ), tab2 as (
    SELECT
    day,
    count(*) as new_wallets,
    sum(new_wallets) over (ORDER by day) as total_wallets
    from (
    SELECT
    TRIM(SPLIT_PART(SPLIT_PART(fee_msg['transition']['outputs'][0]['value'], '[', 2), ',', 1)) as wallet,
    min(date(block_timestamp)) as day
    from aleo.core.fact_transactions
    where tx_succeeded
    GROUP BY 1
    )
    group by 1
    )

    SELECT
    *,
    active_wallets - new_wallets as returning_wallets

    from tab1
    left outer join tab2
    on day = date

    Last run: 10 days ago
    DATE
    ACTIVE_WALLETS
    DAY
    NEW_WALLETS
    TOTAL_WALLETS
    RETURNING_WALLETS
    1
    2025-02-28 00:00:00.000105062025-02-28 00:00:00.000554215136944964
    2
    2024-09-27 00:00:00.00028062024-09-27 00:00:00.000540103682266
    3
    2024-10-02 00:00:00.00039552024-10-02 00:00:00.000851144433104
    4
    2025-02-01 00:00:00.00046262025-02-01 00:00:00.00072614863053900
    5
    2024-10-12 00:00:00.00050212024-10-12 00:00:00.000654370404367
    6
    2025-03-11 00:00:00.00081202025-03-11 00:00:00.000395715967474163
    7
    2024-09-10 00:00:00.0002832024-09-10 00:00:00.000170468113
    8
    2024-11-19 00:00:00.000195362024-11-19 00:00:00.000116744499437862
    9
    2024-12-06 00:00:00.000232802024-12-06 00:00:00.000152226903138058
    10
    2025-04-08 00:00:00.000156782025-04-08 00:00:00.0001135117595004327
    11
    2025-02-13 00:00:00.00043612025-02-13 00:00:00.00037014898803991
    12
    2024-09-29 00:00:00.00032702024-09-29 00:00:00.000813120672457
    13
    2025-05-12 00:00:00.00038342025-05-12 00:00:00.000143318399622401
    14
    2024-12-30 00:00:00.000300562024-12-30 00:00:00.00018659115445711397
    15
    2024-11-14 00:00:00.000191052024-11-14 00:00:00.000112983969117807
    16
    2025-02-14 00:00:00.00041642025-02-14 00:00:00.00058814904683576
    17
    2024-09-04 00:00:00.00032024-09-04 00:00:00.000330
    18
    2024-12-09 00:00:00.000213012024-12-09 00:00:00.000140607337197241
    19
    2025-05-14 00:00:00.00040902025-05-14 00:00:00.000166718431422423
    20
    2025-04-11 00:00:00.00072922025-04-11 00:00:00.000400517725523287
    ...
    259
    19KB
    6s