Skip to content

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.)

  1. Click on Preview or Both
  2. You should wait 1-5 minutes to load.
    After that connect your wallet and Enter amount ETH.
  3. 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.)

  1. Click on Preview or Both
  2. You should wait 1-5 minutes to load.
    After that connect your wallet and Enter amount ETH.
  3. 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.)

  1. Click on Preview or Both
  2. You should wait 1-5 minutes to load.
    After that connect your wallet and Enter withdrawalTxL2 your tx.
  3. 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.)

  1. Click on Preview or Both
  2. You should wait 1-5 minutes to load.
    After that connect your wallet and Enter withdrawalTxL2 your tx.
  3. Click on Finalize Withdrawal to test.

Check out the Stackblitz for more.