Updated 2025-02-19
    WITH total_gas_per_minute AS (
    SELECT
    DATE_TRUNC('minute', block_timestamp) AS minute,
    SUM(gas_used) AS total_gas_used
    FROM MONAD.testnet.fact_transactions
    WHERE block_timestamp >= '2025-02-19 14:00:00' -- شروع از ۱۹ فوریه ساعت ۱۴:۰۰
    GROUP BY 1
    )
    SELECT
    minute,
    total_gas_used,
    AVG(total_gas_used) OVER (ORDER BY minute ROWS BETWEEN 29 PRECEDING AND CURRENT ROW) AS moving_avg_30min
    FROM total_gas_per_minute
    ORDER BY minute DESC;


    Last run: about 1 month ago
    MINUTE
    TOTAL_GAS_USED
    MOVING_AVG_30MIN
    1
    2025-02-19 19:35:00.000352445372338877281.966
    2
    2025-02-19 19:34:00.000255449007334314859.2
    3
    2025-02-19 19:33:00.000249173815336427920.233
    4
    2025-02-19 19:32:00.000493323174336850032.5
    5
    2025-02-19 19:31:00.000245088707334797702.866
    6
    2025-02-19 19:30:00.000357751210336096384.8
    7
    2025-02-19 19:29:00.000662023731333937892.066
    8
    2025-02-19 19:28:00.000212401234323155624.066
    9
    2025-02-19 19:27:00.000607371778324053062.366
    10
    2025-02-19 19:26:00.000300674692315360886.133
    11
    2025-02-19 19:25:00.000389464133315051426.7
    12
    2025-02-19 19:24:00.000306705660316064082.933
    13
    2025-02-19 19:23:00.000194004754316256426.833
    14
    2025-02-19 19:22:00.000432825429322606788.033
    15
    2025-02-19 19:21:00.000274004090326640178.266
    16
    2025-02-19 19:20:00.000301046989329175019.033
    17
    2025-02-19 19:19:00.000227625904334782027.7
    18
    2025-02-19 19:18:00.000223720636340060653.833
    19
    2025-02-19 19:17:00.000228223907345092175.1
    20
    2025-02-19 19:16:00.000391966812354189515.366
    ...
    336
    17KB
    1s