rajsSolana Swaps
    Updated 2022-07-20
    SELECT
    swapper,
    count(*) as no_of_swaps,
    date_trunc('month', min(block_timestamp)) as first_month
    from solana.core.fact_swaps
    where swapper IN
    (
    SELECT
    distinct address as address
    FROM
    (
    SELECT
    distinct purchaser as address
    from solana.core.fact_nft_sales
    where mint IN
    (
    SELECT
    address
    from solana.core.dim_labels
    where address_name = 'communi3: mad scientists'
    )

    union

    SELECT
    distinct purchaser as address
    from solana.core.fact_nft_mints
    where mint IN
    (
    SELECT
    address
    from solana.core.dim_labels
    where address_name = 'communi3: mad scientists'
    )
    -- order by 1 desc
    )
    Run a query to Download Data