SalehOlas_Services_date
    Updated 2024-11-09
    with lst_month as (
    select
    count(DISTINCT tx_hash) as "TXs30D"
    from crosschain.olas.fact_service_events
    where block_timestamp::date>=current_date-30
    )
    , lst_week as (
    select
    count(DISTINCT tx_hash) as "TXs7D"
    from crosschain.olas.fact_service_events
    where block_timestamp::date>=current_date-6
    )
    select
    date_trunc(month,block_timestamp::date) as date
    ,count(DISTINCT tx_hash) as "# of Registrants"
    ,count(DISTINCT service_id) as "Services"
    ,count(DISTINCT agent_ids) as "Agents"
    from crosschain.olas.ez_service_registrations
    group by 1
    order by 1



    QueryRunArchived: QueryRun has been archived