hess16. Daily Number of Contracts
    Updated 2025-05-01
    with new_contract as (select block_timestamp::Date as date,
    count(*) as new
    from mezo.testnet.fact_traces
    where block_timestamp::Date >= '2025-03-01'
    and TYPE IN ('CREATE', 'CREATE2')
    and OUTPUT IS NOT NULL
    and TX_SUCCEEDED = 'TRUE'
    and TRACE_SUCCEEDED = 'TRUE'
    group by 1)
    ,
    hourly_active as ( select block_timestamp::Date as date,
    count(distinct to_address) as total_contract
    from mezo.testnet.fact_transactions
    where block_timestamp::date >= '2025-03-01'
    and to_address in (select distinct to_address from mezo.testnet.fact_traces
    where block_timestamp::Date >= '2025-03-01'
    and TYPE IN ('CREATE', 'CREATE2')
    and OUTPUT IS NOT NULL
    and TX_SUCCEEDED = 'TRUE'
    and TRACE_SUCCEEDED = 'TRUE')
    group by 1)

    select a.date,
    total_contract as "Active Contract",
    new as "New Contract"
    from hourly_active a full outer join new_contract b on a.date = b.date



    Last run: 21 days ago
    DATE
    Active Contract
    New Contract
    1
    2025-04-22 00:00:00.00075527
    2
    2025-05-01 00:00:00.000114435
    3
    2025-04-07 00:00:00.000113533
    4
    2025-03-29 00:00:00.0006364
    5
    2025-04-24 00:00:00.00073803
    6
    2025-04-17 00:00:00.00072380
    7
    2025-04-11 00:00:00.00090575
    8
    2025-03-30 00:00:00.00091453
    9
    2025-04-21 00:00:00.00060774
    10
    2025-04-08 00:00:00.000154395
    11
    2025-04-27 00:00:00.00098820
    12
    2025-04-26 00:00:00.000110208
    13
    2025-04-23 00:00:00.00077734
    14
    2025-04-29 00:00:00.00064295
    15
    2025-04-03 00:00:00.000119409
    16
    2025-04-18 00:00:00.00081144
    17
    2025-03-28 00:00:00.0001
    18
    2025-04-06 00:00:00.000120252
    19
    2025-04-12 00:00:00.00072214
    20
    2025-03-31 00:00:00.0003770
    35
    1KB
    4s