MLDZMNDAAs
Updated 2024-12-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
25
26
27
›
⌄
with tb1 as (select
DECODED_LOG:multisig as service
from base.core.ez_decoded_event_logs
where CONTRACT_ADDRESS = '0x3c1ff68f5aa342d296d4dee4bb1cacca912d95fe'
and EVENT_NAME = 'CreateMultisigWithAgents'
--and tx_hash = '0x2f89d42d90f5363470dc7855bf22a138bc3fa49149244030918324dbf93cbd1a'
),
tb2 AS (
SELECT
BLOCK_TIMESTAMP::date AS day,
contract_address AS service_address
FROM base.core.fact_event_logs
WHERE contract_address IN (SELECT service FROM tb1)
and TOPICS[0] = '0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d' -- SafeReceived event
)
-- select *
-- from base.core.fact_event_logs
-- where tx_hash = '0x47538237772b8a12563574ada85aa9cbd69abfce1b5231fbfed9ccd65250a387'
SELECT
date_trunc('month',day) as month,
COUNT(DISTINCT service_address) AS active_services
FROM tb2
GROUP BY 1
order by 1 desc
QueryRunArchived: QueryRun has been archived