cloudr3nAutonomous Service on Polygon chain
Updated 2024-05-29
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
25
26
27
28
29
30
31
32
33
34
›
⌄
with
polygon as (
select
decoded_log:multisig as multisig
from
polygon.core.ez_decoded_event_logs
where
1=1
and event_name='CreateMultisigWithAgents'
and contract_address='0xe3607b00e75f6405248323a9417ff6b39b244b50' -- Service Registry L2 (AUTONOLAS-SERVICE-L2-V1)
),
weekly_polygon as (
select
time,
sum(transaction_number) as total_weekly_transactions_number,
SUM(total_weekly_transactions_number) OVER (ORDER BY time) AS cumulative_transactions_number
from (
select
date_trunc('week',block_timestamp) as time,
to_address as service_multisig_address,
count(*) as transaction_number
from
polygon.core.fact_transactions
where
to_address in (select distinct multisig from polygon)
group by
time, to_address
)
group by
time
)
select * from weekly_polygon
order by time desc
Auto-refreshes every 24 hours
QueryRunArchived: QueryRun has been archived