Example
For this example, quickly start your dApp with a just one click.
useWriteDepositETH
advice: This test is on Network L1: Sepolia <-> L2: Optimism Sepolia. (You should be on the correct L1 network.)
- Click on
PrevieworBoth - You should wait 1-5 minutes to load.
After that connect your wallet andEnter amountETH. - Click on
Deposit ETHto test.
Check out the Stackblitz for more.
useWriteWithdrawETH
advice: This test is on Network L2: Optimism Sepolia <-> L1: Sepolia. (You should be on the correct L1 network.)
- Click on
PrevieworBoth - You should wait 1-5 minutes to load.
After that connect your wallet andEnter amountETH. - Click on
Withdraw ETHto test.
Check out the Stackblitz for more.
useWriteProveWithdrawalTransaction
advice: This test is on Network L1: Sepolia <-> L2: Optimism Sepolia. (You should be on the correct L1 network.)
- Click on
PrevieworBoth - You should wait 1-5 minutes to load.
After that connect your wallet andEnter withdrawalTxL2your tx. - Click on
Prove Withdrawalto test.
Check out the Stackblitz for more.
useWriteFinalizeWithdrawalTransaction
advice: This test is on Network L1: Sepolia <-> L2: Optimism Sepolia. (You should be on the correct L1 network.)
- Click on
PrevieworBoth - You should wait 1-5 minutes to load.
After that connect your wallet andEnter withdrawalTxL2your tx. - Click on
Finalize Withdrawalto test.
Check out the Stackblitz for more.
