Skip to content

How do you withdraw from L2 to L1 using only contract calls? #119

Closed Answered by sbvegan
shaunkh asked this question in Application Development
Discussion options

You must be logged in to vote

Hey @shaunkh, this blog post will give you an overview of how two step withdrawals work. To move ETH or tokens from OP Mainnet to Ethereum you need to execute three transactions:

  1. Initiate the L2 to L1 transfer on L2 chain
  2. Prove the transaction on L1 (then wait for the challenge period to pass)
  3. Finalize the transaction on L1

Relevant Contract

You will need to interact with the OptimismPortal on to prove and finalize. You can find the contract addresses in our documentation. With the SDK you can use:

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sbvegan
Comment options

Answer selected by sbvegan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-development discussion-metrics Used by Github Action to gather discussion metrics on the question and answer section.
2 participants