cybergenlab[Ecosystem metrics] Dapps > 1000 users
    Updated 2024-11-16
    -- forked from [Ecosystem metrics] Active Users @ https://flipsidecrypto.xyz/studio/queries/394629e2-1794-4316-97c4-a47012a830e3


    --Get all metrics for Ethereum ecosystem user growth

    /* Existing sectors in dim_labels
    dex, dapp, operator, games, chadmin, bridge, token, nft, flotsam, cex, defi
    */

    with monthly_users as (
    select
    date_trunc('month', block_timestamp) as time,
    from_address,
    labels.address as protocol
    from ethereum.core.fact_transactions as transactions
    left join ethereum.core.dim_labels labels on transactions.to_address = labels.address
    where block_timestamp >= dateadd(year, -1, date_trunc('month',current_date()))
    and block_timestamp < date_trunc('month',current_date())
    and status = 'SUCCESS'
    and from_address not in (select distinct address from ethereum.core.dim_labels)
    )

    select
    time,
    count(distinct protocol) as Dapps
    from (
    select
    time,
    protocol,
    count(distinct from_address) as users
    from monthly_users
    group by 1,2
    )
    where users > 1000
    group by 1

    QueryRunArchived: QueryRun has been archived