Mrftibrave-aqua
    Updated 2025-02-05
    SELECT
    date_trunc({{period_type}}, BLOCK_TIMESTAMP) as "Date",
    COUNT(DISTINCT block_number) AS "Block Count",
    LAG("Block Count") OVER (ORDER BY "Date") AS lag_blocks,
    ROUND(100 * ("Block Count" - lag_blocks) / lag_blocks, 2) AS "Block Count Change %"
    FROM
    berachain.testnet.fact_blocks
    WHERE
    BLOCK_TIMESTAMP::date >= '{{start_day}}'
    AND date_trunc({{period_type}}, BLOCK_TIMESTAMP) <= '{{target_day}}'
    GROUP BY 1
    ORDER BY 1 DESC
    Last run: 3 months ago
    Date
    Block Count
    LAG_BLOCKS
    Block Count Change %
    1
    2024-12-30 00:00:00.000280461283422-1.04
    2
    2024-12-23 00:00:00.0002834222665796.32
    3
    2024-12-16 00:00:00.000266579284503-6.3
    4
    2024-12-09 00:00:00.0002845032799051.64
    5
    2024-12-02 00:00:00.000279905292516-4.31
    6
    2024-11-25 00:00:00.000292516292846-0.11
    7
    2024-11-18 00:00:00.000292846299463-2.21
    8
    2024-11-11 00:00:00.0002994632881543.92
    9
    2024-11-04 00:00:00.0002881542797313.01
    10
    2024-10-28 00:00:00.000279731285504-2.02
    11
    2024-10-21 00:00:00.000285504305119-6.43
    12
    2024-10-14 00:00:00.0003051192943123.67
    13
    2024-10-07 00:00:00.000294312299109-1.6
    14
    2024-09-30 00:00:00.0002991092968590.76
    15
    2024-09-23 00:00:00.000296859303813-2.29
    16
    2024-09-16 00:00:00.0003038132886805.24
    17
    2024-09-09 00:00:00.000288680301959-4.4
    18
    2024-09-02 00:00:00.000301959314985-4.14
    19
    2024-08-26 00:00:00.000314985353275-10.84
    20
    2024-08-19 00:00:00.0003532753406653.7
    31
    1KB
    3s