SalehOlas_Services
Updated 2024-11-09
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
›
⌄
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
datediff(day,min(block_timestamp::date),max(block_timestamp::date)) as "Active Days"
,count(DISTINCT tx_hash) as "# of Registrants"
,count(DISTINCT service_id) as "Services"
,count(DISTINCT agent_ids) as "Agents"
-- ,"# of Transactions"/"Active Days" as "Average Daily Transactions"
-- ,(select "TXs30D" from lst_month)/30 as "Avg Daily Transactions (Last Month)"
-- ,(select "TXs7D" from lst_week)/7 as "Avg Daily Transactions (Last Week)"
from crosschain.olas.ez_service_registrations
QueryRunArchived: QueryRun has been archived