CryptoIciclePoly-3.Polygon NFT - NFT Volume
    Updated 2022-07-15
    -- Payout 50 USDC
    -- Grand Prize 150 USDC
    -- Level Beginner
    -- Q3. How popular are NFTs on Polygon? Track daily volume over the past month/year/etc.
    -- How many Polygon users started off with NFTs? Who made the most profit?

    with nfts as (
    select distinct address
    from polygon.core.dim_labels
    where label_type = 'nft'
    )

    select
    date_trunc({{date_partition}},block_timestamp) as date,
    count(distinct tx_hash) as nft_volume,
    count(distinct origin_from_address) as n_wallets
    from polygon.core.fact_event_logs t
    join nfts n on t.contract_address = n.address
    and block_timestamp >= CURRENT_DATE - {{n_days}}
    group by date

    Run a query to Download Data