How do you withdraw from L2 to L1 using only contract calls? #119
-
Issue DescriptionThe SDK is giving me an error: As a result I need to test withdrawing tokens from L2 to L1 using direct contract calls. After calling withdraw on the L2StandardBridge what are the next steps? i.e. what is the contract read I can use to proveWithdrawal? And is there any other steps to it as well? Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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:
Relevant ContractYou will need to interact with the |
Beta Was this translation helpful? Give feedback.
-
Hey @shaunkh, We hope your recent question was resolved to your satisfaction. Your feedback is invaluable and helps us improve our support services. Could you spare a moment to fill out a short feedback survey. Thank you for helping us improve our developer community. |
Beta Was this translation helpful? Give feedback.
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:
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: