datavortexActive Wallets
    Updated 2025-03-09
    WITH total_addresses AS (
    SELECT
    DISTINCT owner_address
    FROM
    aptos.core.dim_aptos_names
    WHERE
    domain ILIKE 'petra'
    ),
    active_wallets AS (
    SELECT
    DISTINCT t.account_address,
    DATE_TRUNC('week', t.block_timestamp) AS week_start
    FROM
    total_addresses fa
    LEFT JOIN
    aptos.core.fact_transfers t
    ON
    fa.owner_address = t.account_address
    WHERE
    t.account_address IS NOT NULL
    )
    SELECT
    week_start,
    COUNT(DISTINCT account_address) AS active_addresses,
    SUM(COUNT(DISTINCT account_address)) OVER (ORDER BY week_start) AS cumulative_active_addresses
    FROM
    active_wallets
    GROUP BY
    week_start
    ORDER BY
    week_start;

    Last run: about 2 months agoAuto-refreshes every 12 hours
    WEEK_START
    ACTIVE_ADDRESSES
    CUMULATIVE_ACTIVE_ADDRESSES
    1
    2022-10-10 00:00:00.00022
    2
    2022-10-17 00:00:00.00055255527
    3
    2022-10-24 00:00:00.00040169543
    4
    2022-10-31 00:00:00.000309612639
    5
    2022-11-07 00:00:00.000237215011
    6
    2022-11-14 00:00:00.000148416495
    7
    2022-11-21 00:00:00.000143917934
    8
    2022-11-28 00:00:00.000143719371
    9
    2022-12-05 00:00:00.000137420745
    10
    2022-12-12 00:00:00.000146322208
    11
    2022-12-19 00:00:00.000100423212
    12
    2022-12-26 00:00:00.00079724009
    13
    2023-01-02 00:00:00.00092924938
    14
    2023-01-09 00:00:00.000131926257
    15
    2023-01-16 00:00:00.000155427811
    16
    2023-01-23 00:00:00.000156929380
    17
    2023-01-30 00:00:00.000134330723
    18
    2023-02-06 00:00:00.000120131924
    19
    2023-02-13 00:00:00.000163133555
    20
    2023-02-20 00:00:00.000137334928
    ...
    126
    5KB
    38s