i_dancrude-gold odd 2020 - 2021
    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) = '2021-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) = '2021-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) = '2021-07-01'
    Last run: about 1 month ago
    MONTH
    WALLET_ADDRESS
    1
    2021-11-01 00:00:00.00021659842
    2
    2021-09-01 00:00:00.00025468671
    3
    2021-07-01 00:00:00.0009364174
    4
    2021-05-01 00:00:00.00027999842
    5
    2021-03-01 00:00:00.0007754903
    6
    2021-01-01 00:00:00.00011778444
    7
    2020-11-01 00:00:00.000407673
    8
    2020-03-01 00:00:00.000189
    8
    288B
    115s