i_dancrude-gold odd 2022
    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) = '2022-11-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) = '2022-09-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) = '2022-07-01'
    Last run: about 1 month ago
    MONTH
    WALLET_ADDRESS
    1
    2022-11-01 00:00:00.0008845402
    2
    2022-09-01 00:00:00.00021641995
    3
    2022-07-01 00:00:00.00026485474
    4
    2022-05-01 00:00:00.00044941884
    5
    2022-03-01 00:00:00.00031834033
    6
    2022-01-01 00:00:00.00024136977
    6
    222B
    230s