Updated 8 days ago
    select
    trunc(block_timestamp,'month') as date,
    count(distinct tx_id) as nft_sales,
    sum(nft_sales) over (order by date) as total_nft_sales,
    count(distinct event_data:nftID) as distinct_nfts_purchased,
    sum(distinct_nfts_purchased) over (order by date) as total_unique_nft_purchased,
    count(distinct event_data:NFTReceiver) as nft_buyers
    from flow.core.fact_events
    where block_timestamp>'2024-01-01' and tx_succeeded='TRUE' and event_contract='A.7d09be7121e058eb.NBAsageNFT' and event_type='NFTPurchased'
    and event_data:name='NBAsage Yes'
    group by 1 order by 1 desc

    -- per saber volume, event_type='Deposited' and event_data:to <> '0xf919ee77447b7497' -- es nomes per fees
    -- agafar el event_data:amount i el event_data:to com a seller i el event_data:type com a moneda
    Last run: 8 days ago
    DATE
    NFT_SALES
    TOTAL_NFT_SALES
    DISTINCT_NFTS_PURCHASED
    TOTAL_UNIQUE_NFT_PURCHASED
    NFT_BUYERS
    1
    2025-03-01 00:00:00.00010927667592184713399710603
    2
    2025-02-01 00:00:00.000737155832148621121507100
    3
    2025-01-01 00:00:00.0001764648461354529728816383
    4
    2024-12-01 00:00:00.0002078530815416896183618968
    5
    2024-11-01 00:00:00.000100301003020147201479104
    5
    290B
    9s