Movement TeamDaily Active Contract and Deployer
    Updated 2025-02-06
    with active_contract as (SELECT trunc(block_timestamp,'hour') as hourly,
    count(DISTINCT payload_function) AS no_contract,
    FROM
    aptos.core.fact_transactions
    WHERE
    tx_type = 'user_transaction'
    and block_timestamp >= current_date - 1
    group by 1)
    ,
    new as ( select min(block_timestamp) as time,
    payload_function
    from aptos.core.fact_transactions
    WHERE
    tx_type = 'user_transaction'
    group by 2)
    ,
    new_contract as ( select trunc(time,'hour') as hourly,
    count(DISTINCT payload_function) as "New"
    from new
    where time >= current_date - 1
    group by 1)

    select a.hourly,
    no_contract as "Total Contract",
    ifnull("New",0) as "New Contract",
    "Total Contract"-"New Contract" as "Active Contract"
    from active_contract a left outer join new_contract b on a.hourly = b.hourly


    Last run: 2 months ago
    HOURLY
    Total Contract
    New Contract
    Active Contract
    1
    2025-02-05 22:00:00.0002490249
    2
    2025-02-06 19:00:00.0003030303
    3
    2025-02-06 23:00:00.00071071
    4
    2025-02-06 09:00:00.0003470347
    5
    2025-02-06 10:00:00.0003091308
    6
    2025-02-06 13:00:00.0003250325
    7
    2025-02-05 00:00:00.0002390239
    8
    2025-02-05 10:00:00.0003291328
    9
    2025-02-06 08:00:00.0003050305
    10
    2025-02-06 07:00:00.0003190319
    11
    2025-02-05 06:00:00.0002941293
    12
    2025-02-05 14:00:00.0003252323
    13
    2025-02-06 22:00:00.0002570257
    14
    2025-02-06 14:00:00.0003561355
    15
    2025-02-05 02:00:00.0002671266
    16
    2025-02-05 08:00:00.0003020302
    17
    2025-02-06 15:00:00.0003690369
    18
    2025-02-06 05:00:00.0002935288
    19
    2025-02-06 18:00:00.0003271326
    20
    2025-02-06 01:00:00.0002760276
    48
    2KB
    75s