MetaLightCumulative Chart
    Updated 2025-02-06
    WITH hourly_data AS (
    SELECT
    TO_TIMESTAMP_NTZ(CONCAT(CAST(e.block_timestamp AS DATE)::STRING, ' ', EXTRACT(HOUR FROM e.block_timestamp)::STRING, ':00:00')) AS tx_datetime,
    COUNT(e.tx_id) AS tx_count,
    COUNT(DISTINCT e.instruction:accounts[0]::STRING) AS unique_users,
    SUM(b.burn_amount / 1e9) AS ore_bridged
    FROM
    solana.core.fact_events e
    JOIN
    solana.defi.fact_token_burn_actions b
    ON
    e.tx_id = b.tx_id
    WHERE
    e.succeeded
    AND e.program_id = 'oreV2ZymfyeXgNgBdqMkumTqqAprVqgBWQfoYkrtKWQ'
    AND e.instruction:accounts[2] = 'oreoU2P8bN6jkk3jbaiVxYnG1dCXcYxwhwyK9jSybcp'
    AND e.instruction:accounts[3] = 'oreoN2tQbHXVaZsr3pf66A48miqcBXCDJozganhEJgz'
    AND CAST(e.block_timestamp AS DATE) > CURRENT_DATE - INTERVAL '365 days'
    GROUP BY
    tx_datetime
    )

    SELECT
    tx_datetime,
    SUM(tx_count) OVER (ORDER BY tx_datetime) AS cumulative_tx_count,
    SUM(unique_users) OVER (ORDER BY tx_datetime) AS cumulative_unique_users,
    SUM(ore_bridged) OVER (ORDER BY tx_datetime) AS cumulative_ore_bridged
    FROM
    hourly_data
    ORDER BY
    tx_datetime ASC;

    Last run: about 2 months ago
    TX_DATETIME
    CUMULATIVE_TX_COUNT
    CUMULATIVE_UNIQUE_USERS
    CUMULATIVE_ORE_BRIDGED
    1
    2024-08-01 21:00:00.000210.00002
    2
    2024-08-01 23:00:00.000320.00003
    3
    2024-08-02 00:00:00.000630.00006
    4
    2024-08-02 20:00:00.00084100.00006
    5
    2024-08-02 23:00:00.00010085638.736773
    6
    2024-08-03 00:00:00.0002312011900.510826
    7
    2024-08-03 01:00:00.0003232862548.393735
    8
    2024-08-03 02:00:00.0003813382828.880186
    9
    2024-08-03 03:00:00.0004303852944.566476
    10
    2024-08-03 04:00:00.0004804323033.471576
    11
    2024-08-03 05:00:00.0005084593091.664849
    12
    2024-08-03 06:00:00.0005555033297.134971
    13
    2024-08-03 07:00:00.0006075503400.178041
    14
    2024-08-03 08:00:00.0006445833438.285779
    15
    2024-08-03 09:00:00.0006696033515.01299
    16
    2024-08-03 10:00:00.0006846183613.266856
    17
    2024-08-03 11:00:00.0007536713695.685109
    18
    2024-08-03 12:00:00.0007997043712.847018
    19
    2024-08-03 13:00:00.0008447433782.025567
    20
    2024-08-03 14:00:00.0008897824041.195722
    ...
    547
    27KB
    43s