i_dancrude-gold even 2025
    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) = '2025-04-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) = '2025-02-01'
    GROUP BY 1

    -- UNION ALL
    --GROUP BY 1
    -- ORDER BY block_timestamp DESC
    -- LIMIT 100
    )

    SELECT *
    FROM firsta
    ORDER BY Month DESC
    --LIMIT 10

    Last run: about 1 month ago
    MONTH
    WALLET_ADDRESS
    1
    2025-04-01 00:00:00.000102791149
    2
    2025-02-01 00:00:00.000111091645
    2
    77B
    387s