boomer772023-05-10 02:31 AM
    Updated 2023-08-30
    with raw as (select *,
    case when project_name is null then nft_address else project_name end as projz
    from ethereum.core.ez_nft_sales
    where date(block_timestamp) >= current_date - 31
    and price_usd > 0)

    select buyer_address, sum(price_usd) as volume, count(distinct tx_hash) as tx_count
    from raw
    where projz in ('mineablepunks')
    group by 1
    order by 2 desc
    Run a query to Download Data