freemartianTotal ETH bridge to Linea
    Updated 2023-11-19
    -- bridg ETH from ethereum
    with eth_from_ethereum AS(
    select
    block_timestamp,
    from_address,
    tx_hash,
    eth_value
    from ethereum.core.fact_traces
    where
    RIGHT (ethereum.public.udf_hex_to_int(data:value :: STRING),4) = 9023
    AND
    to_address IN ('0xe4edb277e41dc89ab076a1f049f4a3efa700bce8','0x80c67432656d59144ceff962e8faf8926599bcf8')
    AND block_timestamp::date > '2023-07-01'
    ),
    eth_from_optimism AS(
    select
    block_timestamp,
    from_address,
    tx_hash,
    eth_value
    from optimism.core.fact_traces
    where
    RIGHT (optimism.public.udf_hex_to_int(data:value :: STRING),4) = 9023
    AND
    to_address IN ('0xe4edb277e41dc89ab076a1f049f4a3efa700bce8','0x80c67432656d59144ceff962e8faf8926599bcf8')
    AND block_timestamp::date > '2023-07-01'
    ),
    eth_from_arbitrum AS (
    select
    block_timestamp,
    from_address,
    tx_hash,
    eth_value
    from arbitrum.core.fact_traces
    where
    RIGHT (ethereum.public.udf_hex_to_int(data:value :: STRING),4) = 9023
    Run a query to Download Data