Skip to content
Lattice

ISuperchainETHBridge

Git Source

Title: ISuperchainETHBridge

Author: Vendored minimal subset of Optimism's SuperchainETHBridge (https://github.com/ethereum-optimism/optimism). Upstream license: MIT.

Minimal vendored subset of the OP Stack SuperchainETHBridge predeploy (0x4200000000000000000000000000000000000024) — the canonical native-ETH interop bridge across the Superchain interop set. Only the outbound sendETH entrypoint is vendored; inbound relayETH is invoked by the L2ToL2CrossDomainMessenger on the predeploy ITSELF (never on an integrator), so an integrating diamond has no inbound surface to implement.

Verified against ethereum-optimism/optimism develop @ b3e0997 (packages/contracts-bedrock/interfaces/L2/ISuperchainETHBridge.sol), redeclared at pragma ^0.8.30. sendETH burns msg.value via the ETHLiquidity predeploy, messages the destination chain through the L2ToL2CrossDomainMessenger, and the destination force-sends the ETH to _to — so the recipient must NOT expect a call. Superchain (EVM) chains only; routed by bare chainId.

Functions

sendETH

Sends msg.value ETH to _to on chain _chainId over the Superchain interop messenger.

function sendETH(address _to, uint256 _chainId) external payable returns (bytes32 msgHash_);

Parameters

NameTypeDescription
_toaddressThe recipient address on the destination chain.
_chainIduint256The destination chain id (bare EVM chain id).

Returns

NameTypeDescription
msgHash_bytes32The L2ToL2CrossDomainMessenger message hash of the relay message.