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
Preview
orBoth
- You should wait 1-5 minutes to load.
After that connect your wallet andEnter amount
ETH. - Click on
Deposit ETH
to 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
Preview
orBoth
- You should wait 1-5 minutes to load.
After that connect your wallet andEnter amount
ETH. - Click on
Withdraw ETH
to 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
Preview
orBoth
- You should wait 1-5 minutes to load.
After that connect your wallet andEnter withdrawalTxL2
your tx. - Click on
Prove Withdrawal
to 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
Preview
orBoth
- You should wait 1-5 minutes to load.
After that connect your wallet andEnter withdrawalTxL2
your tx. - Click on
Finalize Withdrawal
to test.
Check out the Stackblitz for more.