mondovcrosschain tx fee
    Updated 2024-06-26
    WITH
    eth_fee AS (
    SELECT 'ethereum' AS blockchain, AVG(tx_fee) AS avg_fee
    FROM ethereum.core.fact_transactions
    WHERE status = 'SUCCESS' AND block_timestamp > '2020-01-01'
    ),
    arb_fee AS (
    SELECT 'arbitrum' AS blockchain, AVG(tx_fee) AS avg_fee
    FROM arbitrum.core.fact_transactions
    WHERE status = 'SUCCESS' AND block_timestamp > '2020-01-01'
    ),
    optimism_fee AS (
    SELECT 'optimism' AS blockchain, AVG(tx_fee) AS avg_fee
    FROM optimism.core.fact_transactions
    WHERE status = 'SUCCESS' AND block_timestamp > '2020-01-01'
    ),
    polygon_fee AS (
    SELECT 'polygon' AS blockchain, AVG(tx_fee) AS avg_fee
    FROM polygon.core.fact_transactions
    WHERE status = 'SUCCESS' AND block_timestamp > '2020-01-01'
    ),
    base_fee AS (
    SELECT 'base' AS blockchain, AVG(tx_fee) AS avg_fee
    FROM base.core.fact_transactions
    WHERE status = 'SUCCESS' AND block_timestamp > '2020-01-01'
    ),
    bsc_fee AS (
    SELECT 'bsc' AS blockchain, AVG(tx_fee) AS avg_fee
    FROM bsc.core.fact_transactions
    WHERE status = 'SUCCESS' AND block_timestamp > '2020-01-01'
    ),
    QueryRunArchived: QueryRun has been archived