Updated 2025-01-20
    with

    main as (
    select
    tx_id,
    block_timestamp,
    buyer as buyer_address,
    seller as seller_address,
    price as price_usd
    from flow.nft.ez_nft_sales
    where marketplace in ('A.3cdbb3d569211ff3.NFTStorefrontV2','A.b8ea91944fd51c43.OffersV2')
    and tx_succeeded = 1
    and block_timestamp >= '2024-01-01'
    )

    select
    count(distinct tx_id) as transactions,
    count(distinct seller_address) as sellers,
    count(distinct buyer_address) as buyers,
    sum(price_usd) as total_volume_usd,
    avg(price_usd) as average_amount_usd,
    transactions / count(distinct block_timestamp::date) as daily_average_transactions
    from main


    QueryRunArchived: QueryRun has been archived