cybergenlab[NFT Overview] New users per protocols (Pie Chart) copy
    Updated 2024-11-16
    -- forked from [Bridge Overview] New users per protocols (Pie Chart) @ https://flipsidecrypto.xyz/studio/queries/ff6591b4-c17e-4b5f-9cab-2558aea4fb5b

    -- forked from [DEX Overview] New users per protocols (Pie Chart) @ https://flipsidecrypto.xyz/studio/queries/3a7c928e-8f77-43b4-8b36-65fe07275e29

    -- forked from [Defi Overview] New users per protocols (Pie Chart) @ https://flipsidecrypto.xyz/studio/queries/8dbde15d-e46c-4f1b-b9d7-19f9aff8b3be

    -- forked from [Ecosystem metrics] New users per sector @ https://flipsidecrypto.xyz/studio/queries/d38c43a3-59cf-422a-b4fa-3e9845798173

    -- forked from [Ecosystem metrics] User growth @ https://flipsidecrypto.xyz/studio/queries/ccbcc55d-e8a5-48e9-a2d3-44d04078781c

    --Get historical project user growth

    with monthly_new_users as (
    select
    date_trunc('month', block_timestamp) as time,
    label_type as category,
    label as protocol,
    count(distinct from_address) as new_users,
    from ethereum.core.fact_transactions as transactions
    left join ethereum.core.dim_labels labels on transactions.to_address = labels.address
    where block_timestamp >= dateadd(month, -1, date_trunc('month',current_date()))
    and block_timestamp < date_trunc('month', current_date())
    and nonce = 0
    and category in ('nft')
    and status = 'SUCCESS'
    group by 1,2,3
    )

    select
    *
    from monthly_new_users
    order by 4 desc



    QueryRunArchived: QueryRun has been archived