BTB
/

Base Bridge

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

What you can do

deposit ETHBridge ETH from Ethereum to BaseCall L1StandardBridge bridgeETH(minGasLimit, extraData) with ETH as msg.value, or bridgeETHTo(to, minGasLimit, extraData) for another recipient. No claim step on Base.
deposit ERC-20Bridge an ERC-20 from Ethereum to BaseApprove L1StandardBridge for the amount, then call bridgeERC20(l1Token, l2Token, amount, minGasLimit, extraData). The L2 token must be the mapped Base address for the L1 token.
withdraw ETHWithdraw ETH from Base to EthereumOn Base 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 Base to EthereumOn Base call L2StandardBridge withdraw(l2Token, amount, minGasLimit, extraData). Then prove and finalize on Ethereum through OptimismPortal after the challenge period.
Withdrawals to Ethereum need a prove step and a finalize step on OptimismPortal, and they only finish after the challenge period.
The L1 addresses come from the Base docs page. Base maintains its own deployment, so check the docs page again before a large transfer.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
L1StandardBridge (Base)bridge on ethereum0x3154Cf16ccdb4C6d922629664174b904d80F2C35
write bridgeETH(uint32,bytes)
Deposit ETH (msg.value) from Ethereum to the caller's address on Base: (minGasLimit, extraData). minGasLimit is the gas for the L2 side. extraData is optional bytes, empty is fine.
write bridgeETHTo(address,uint32,bytes)
Deposit ETH (msg.value) from Ethereum to another address on Base: (to, minGasLimit, extraData). Same behaviour as bridgeETH with a chosen recipient.
write bridgeERC20(address,address,uint256,uint32,bytes)
Deposit an ERC-20 from Ethereum to the caller on Base: (localToken, remoteToken, amount, minGasLimit, extraData). localToken is the L1 token, remoteToken is the matching L2 token on Base (zero address is not valid for a mapped token). Approve this bridge for amount first. Amount is in base units.
write bridgeERC20To(address,address,address,uint256,uint32,bytes)
Deposit an ERC-20 from Ethereum to another address on Base: (localToken, remoteToken, to, amount, minGasLimit, extraData). Same approval and token mapping rules as bridgeERC20.
OptimismPortal (Base)bridge on ethereum0x49048044D57e1C92A77f79988d21Fa8fAF74E97e
write depositTransaction(address,uint256,uint64,bool,bytes)
Low level deposit of ETH and an L2 call: (to, value, gasLimit, isCreation, data). The standard bridge calls this internally. Prefer L1StandardBridge unless you need a raw L2 call. Set isCreation to false for a normal call.
write finalizeWithdrawalTransaction((uint256,address,address,uint256,uint256,bytes))
Finalize a withdrawal from Base on Ethereum: a tuple of (nonce, sender, target, value, gasLimit, data) as in the Base withdrawal. The withdrawal must have been proven first on this portal and the challenge period must have passed. Sends the ETH or tokens to the target.
L2StandardBridge (Base predeploy)bridge on base0x4200000000000000000000000000000000000010
write bridgeETH(uint32,bytes)
Withdraw ETH (msg.value) from Base to the caller's address on Ethereum: (minGasLimit, extraData). Starts the withdrawal. It is finished on Ethereum after proving and the challenge period (see OptimismPortal finalizeWithdrawalTransaction).
write withdraw(address,uint256,uint32,bytes)
Withdraw an ERC-20 from Base to the caller on Ethereum: (l2Token, amount, minGasLimit, extraData). Pass the L2 token address. Bridged tokens are burned, so no approval is needed for them. Starts the withdrawal, which is finished on Ethereum after the challenge period.
write withdrawTo(address,address,uint256,uint32,bytes)
Withdraw an ERC-20 from Base to another address on Ethereum: (l2Token, to, amount, minGasLimit, extraData). Same rules as withdraw.