i_dancrude-gold even 2023
    Updated 2025-04-29
    WITH firsta AS (
    SELECT
    date_trunc('month', block_timestamp) AS Month
    -- , tx_id
    -- , event_type
    -- , program_id
    , COUNT(DISTINCT TRIM(REPLACE(f.value::string, '"', ''))) AS wallet_address
    FROM solana.core.fact_transactions d --solana.core.fact_transactions
    JOIN LATERAL FLATTEN(INPUT => d.signers) f
    WHERE date_trunc('month', block_timestamp) = '2023-12-01'
    GROUP BY 1

    UNION ALL

    SELECT
    date_trunc('month', block_timestamp) AS Month
    -- , tx_id
    -- , event_type
    -- , program_id
    , COUNT(DISTINCT TRIM(REPLACE(f.value::string, '"', ''))) AS wallet_address
    FROM solana.core.fact_transactions d --solana.core.fact_transactions
    JOIN LATERAL FLATTEN(INPUT => d.signers) f
    WHERE date_trunc('month', block_timestamp) = '2023-10-01'
    GROUP BY 1

    UNION ALL

    SELECT
    date_trunc('month', block_timestamp) AS Month
    -- , tx_id
    -- , event_type
    -- , program_id
    , COUNT(DISTINCT TRIM(REPLACE(f.value::string, '"', ''))) AS wallet_address
    FROM solana.core.fact_transactions d --solana.core.fact_transactions
    JOIN LATERAL FLATTEN(INPUT => d.signers) f
    WHERE date_trunc('month', block_timestamp) = '2023-08-01'
    Last run: about 1 month ago
    MONTH
    WALLET_ADDRESS
    1
    2023-12-01 00:00:00.00021303731
    2
    2023-10-01 00:00:00.0005775432
    3
    2023-08-01 00:00:00.0005881310
    4
    2023-06-01 00:00:00.0007278821
    5
    2023-04-01 00:00:00.0006403216
    6
    2023-02-01 00:00:00.0007450595
    6
    218B
    456s