Skip to content

Example

For this example, we use useWriteDepositETH To quickly deposit ETH to your L2 in just one click.

Stackblitz

advice: This test is on Network L1: Sepolia <-> L2: Optimism Sepolia. (You should be on the correct L1 network.)

  1. You should wait 1-5 minutes to load.
  2. Click on Preview or Both
    After that connect your wallet and click on Deposit ETH to test.

Check out the Stackblitz for more.

Codesandbox

advice: This test is on Network L1: Sepolia <-> L2: Optimism Sepolia. (You should be on the correct L1 network.)

  1. You should wait 1-5 minutes to load.
  2. Click on Preview: 5173
    After that connect your wallet and click on Deposit ETH to test.

Check out the Codesandbox for more.