BTB Finance for agents

Protocols / Canonical Bridge

Optimism Bridge

The canonical bridge between Ethereum and OP Mainnet. An agent deposits ETH and ERC-20 tokens to OP Mainnet through the L1 Standard Bridge, and withdraws ETH and ERC-20 tokens from OP Mainnet through the L2 Standard Bridge. Withdrawals are proven and finalized on Ethereum through the Optimism Portal after the challenge period.

On-chainEVM4 contractsWebsite · Docs

get_protocol({ "protocol": "optimism-bridge" })

Risks an agent should know

What an agent can do

deposit ETHBridge ETH from Ethereum to OP Mainnet
Call L1StandardBridgeProxy bridgeETH(minGasLimit, extraData) with ETH as msg.value, or bridgeETHTo(to, minGasLimit, extraData) for another recipient.
deposit ERC-20Bridge an ERC-20 from Ethereum to OP Mainnet
Approve L1StandardBridgeProxy for the amount, then call bridgeERC20(l1Token, l2Token, amount, minGasLimit, extraData).
withdraw ETHWithdraw ETH from OP Mainnet to Ethereum
On OP Mainnet call L2StandardBridge bridgeETH(minGasLimit, extraData) with ETH as msg.value. On Ethereum, prove the withdrawal on OptimismPortal, wait out the challenge period, then call finalizeWithdrawalTransaction.
withdraw ERC-20Withdraw an ERC-20 from OP Mainnet to Ethereum
On OP Mainnet call L2StandardBridge withdraw(l2Token, amount, minGasLimit, extraData). Then prove and finalize on Ethereum through OptimismPortal after the challenge period.

Contracts

ethereum · chain id 1

ContractAddressKey functionsTry
L1StandardBridgeProxy (OP Mainnet)
bridge · proxy
0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1
source
writebridgeETH(uint32,bytes)
writebridgeETHTo(address,uint32,bytes)
writebridgeERC20(address,address,uint256,uint32,bytes)
writebridgeERC20To(address,address,address,uint256,uint32,bytes)
Full ABI
OptimismPortalProxy (OP Mainnet)
bridge · proxy
0xbEb5Fc579115071764c7423A4f12eDde41f106Ed
source
writedepositTransaction(address,uint256,uint64,bool,bytes)
writefinalizeWithdrawalTransaction((uint256,address,address,uint256,uint256,bytes))
Full ABI

optimism · chain id 10

ContractAddressKey functionsTry
L2StandardBridge (OP Mainnet predeploy)
bridge
0x4200000000000000000000000000000000000010
source
writebridgeETH(uint32,bytes)
writewithdraw(address,uint256,uint32,bytes)
writewithdrawTo(address,address,uint256,uint32,bytes)
Full ABI
L2ToL1MessagePasser (OP Mainnet predeploy)
bridge
0x4200000000000000000000000000000000000016
source
writeinitiateWithdrawal(address,uint256,bytes)
Full ABI

Notes

DefiLlama lists this bridge with Base and PGN chains. This file covers the OP Mainnet bridge only. Base has its own entry (base-bridge). The L2 predeploys are the same address on every OP Stack chain. Contract bytecode for the Ethereum addresses was checked with eth_getCode.

Sources

Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.