rezarwzDaily ETH Volume copy
    Updated 2024-08-10
    SELECT
    'Blast' as blockchain,
    date_trunc('{{time_frame}}', block_Timestamp) as date,
    sum(Value) as "ETH Volume"
    FROM
    blast.core.fact_transactions
    where
    block_Timestamp :: date is not null
    and STATUS = 'SUCCESS'
    and block_Timestamp :: date >= '{{day_from}}'
    and block_Timestamp :: date <= '{{day_to}}'
    group by
    1,
    2
    UNION
    all
    SELECT
    'Arbitrum' as blockchain,
    date_trunc('{{time_frame}}', block_Timestamp) as date,
    sum(Value) as "ETH Volume"
    FROM
    Arbitrum.core.fact_transactions
    where
    block_Timestamp :: date is not null
    and STATUS = 'SUCCESS'
    and block_Timestamp :: date >= '{{day_from}}'
    and block_Timestamp :: date <= '{{day_to}}'
    group by
    1,
    2
    UNION
    all
    SELECT
    'Optimism' as blockchain,
    date_trunc('{{time_frame}}', block_Timestamp) as date,
    sum(Value) as "ETH Volume"
    QueryRunArchived: QueryRun has been archived