Updated 2024-11-17
    with bridges as (SELECT *
    FROM crosschain.defi.ez_bridge_activity
    WHERE destination_chain = 'near'
    AND block_timestamp >='2024-07-01'
    ),
    bridges_tx_fee as (
    SELECT tx_hash, transaction_fee as tx_fee, gas_used
    FROM near.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, tx_fee,gas_used
    FROM ethereum.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, tx_fee,gas_used
    FROM avalanche.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, tx_fee,gas_used
    FROM bsc.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, tx_fee,gas_used
    FROM base.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, 0 as tx_fee,gas_used
    FROM aptos.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, tx_fee,gas_used
    FROM arbitrum.core.fact_transactions
    WHERE block_timestamp >='2024-07-01'
    UNION
    SELECT tx_hash, tx_fee,gas_used
    FROM optimism.core.fact_transactions
    QueryRunArchived: QueryRun has been archived