You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/stack/interop/superchain-weth.mdx
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,13 @@ import { InteropCallout } from '@/components/WipCallout'
12
12
13
13
# Superchain ETH
14
14
15
-
Superchain ETH enables seamless ETH transfers across the [Superchain interop cluster](/stack/interop/explainer#superchain-interop-cluster). It is implemented using three key contracts:
15
+
<Callout>
16
+
This is an explanation of how interop ETH works.
17
+
You can find a step by step tutorial [here](tutorials/bridge-crosschain-eth).
18
+
</Callout>
19
+
20
+
21
+
InteroperableETH enables seamless ETH transfers across Superchain blockchains. It is implemented using three key contracts:
16
22
17
23
*[`SuperchainWETH`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainWETH.sol): A bridge contract that facilitates ETH transfers between Superchain blockchains.
18
24
*[`ETHLiquidity`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/ETHLiquidity.sol): A liquidity provider for ETH transfers.
This tutorial provides step-by-step instructions for bridging ETH from one Superchain Interop chain to another.
17
+
For a conceptual overview,
18
+
see the [interoperable ETH explainer](/stack/interop/superchain-weth).
19
+
</Callout>
20
+
21
+
## Overview
22
+
15
23
Crosschain ETH transfers in the Superchain are facilitated through the [SuperchainWETH](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/SuperchainWETH.sol) contract.
16
-
This tutorial walks through how to send native ETH from chain 901 to 902. To simplify these steps, [supersim](/stack/interop/tools/supersim) will be run with the `--interop.autorelay` flag. The `--interop.autorelay` flag automatically triggers the relay message transaction once the initial send transaction is completed on the source chain, improving the developer experience by removing the need to manually send the relay message.
24
+
This tutorial walks through how to send native ETH from one chain to another.
25
+
You can do this on [Supersim](/stack/interop/tools/supersim), [the Interop devnet](/stack/interop/tools/devnet), or production once it is released.
26
+
27
+
### What you'll build
28
+
29
+
* A TypeScript application to transfer ETH chains
30
+
31
+
### What you'll learn
32
+
33
+
* How to send ETH on the blockchain and between blockchains
34
+
* How to relay messages between chains
35
+
36
+
## Prerequisites
37
+
38
+
Before starting this tutorial, ensure your development environment meets the following requirements:
39
+
40
+
### Technical knowledge
41
+
42
+
* Intermediate TypeScript knowledge
43
+
* Understanding of smart contract development
44
+
* Familiarity with blockchain concepts
17
45
46
+
### Development environment
47
+
48
+
* Unix-like operating system (Linux, macOS, or WSL for Windows)
The exact mechanism to do this depends on your operating system; most come with it preinstalled.
25
68
26
-
### Initiate the send transaction on chain 901
69
+
### Configure the network
27
70
28
-
* In this step, you'll send ETH from Chain 901 to Chain 902 through `SuperchainWETH` contract deployed at `0x4200000000000000000000000000000000000024`.
29
-
* Use the following command:
71
+
You can run this tutorial either with [Supersim](/stack/interop/tools/supersim) running locally, or using the [Interop devnet](/stack/interop/tools/devnet).
### Wait for the relayed message to appear on chain 902
75
+
<Tabsitems={['Supersim', 'Interop devnet']}>
76
+
<Tabs.Tab>
77
+
1. Follow the [Installation Guide](/app-developers/tutorials/supersim/getting-started/installation) to install Supersim for running blockchains with Interop.
36
78
37
-
In a few seconds, you should see the relayed message on chain 902:
79
+
1. Start Supersim.
38
80
39
-
```sh
40
-
# example
41
-
INFO [12-02|14:53:02.434] SuperchainWETH#RelayETH chain.id=902 from=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 to=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 amount=10,000,000,000,000,000,000 source=901
42
-
```
81
+
```sh
82
+
./supersim --interop.autorelay
83
+
```
84
+
85
+
1. Supersim uses Foundry's `anvil` blockchains, which start with ten prefunded accounts.
86
+
Set these environment variables to access one of those accounts on the L2 blockchains.
0 commit comments