0xHaM-dEVM - Fees copy
    Updated 2024-07-11
    -- forked from EVM - Fees @ https://flipsidecrypto.xyz/edit/queries/fe3c6b4b-60e1-4eb7-b951-dec1e0520ff3

    -- forked from https://flipsidecrypto.xyz/hess/q/blZ-l4FMTnz3/fees

    with
    chains as (
    select
    date(block_timestamp) as date,
    'Arbitrum' as chain,
    'WETH' as symbol,
    tx_fee
    from arbitrum.core.fact_transactions -- a join ethereum.core.dim_dates b on a.block_timestamp::date = b.date_day
    where date >= current_date() - 31
    AND date < current_date()
    -- and block_timestamp::date >= '2023-11-01'
    and status = 'SUCCESS'

    UNION ALL
    select date(block_timestamp) as date,
    'Optimism' as chain,
    'WETH' as symbol,
    tx_fee
    from optimism.core.fact_transactions -- a join ethereum.core.dim_dates b on a.block_timestamp::date = b.date_day
    where date >= current_date() - 31
    AND date < current_date()
    -- and block_timestamp::date >= '2023-11-01'
    and status = 'SUCCESS'

    UNION ALL
    select date(block_timestamp) as date,
    'Polygon' as chain,
    'WMATIC' as symbol,
    tx_fee
    from polygon.core.fact_transactions --a join ethereum.core.dim_dates b on a.block_timestamp::date = b.date_day
    where date >= current_date() - 31
    AND date < current_date()
    QueryRunArchived: QueryRun has been archived