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/builders/chain-operators/deploy/genesis.mdx
+21-25Lines changed: 21 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ import { Callout } from 'nextra/components'
9
9
# OP Stack genesis creation
10
10
11
11
<Callouttype="info">
12
-
The recommended way to generate genesis and rollup configuration files is using `op-deployer`.
12
+
The recommended way to generate genesis and rollup configuration files is using `op-deployer`.
13
13
This ensures standardization and compatibility with the Superchain.
14
14
</Callout>
15
15
@@ -18,31 +18,28 @@ These files are crucial for initializing the execution client (`op-geth`) and co
18
18
19
19
The recommended flow for creating a genesis file and rollup configuration file on the OP Stack is as follows:
20
20
21
-
1.**Deploy the L1 contracts** using [op-deployer](/builders/chain-operators/tools/op-deployer).
22
-
2.**Generate** both the L2 genesis file (`genesis.json`) and the rollup configuration file (`rollup.json`) using op-deployer's `inspect` commands.
23
-
3.**Initialize** your off-chain components (e.g., execution client, consensus client).
21
+
1.**Deploy the L1 contracts** using [op-deployer](/builders/chain-operators/tools/op-deployer).
22
+
2.**Generate** both the L2 genesis file (`genesis.json`) and the rollup configuration file (`rollup.json`) using op-deployer’s `inspect` commands.
23
+
3.**Initialize** your off-chain components (e.g., execution client, consensus client).
24
24
25
25
## Recommended method: using op-deployer
26
26
27
27
### Prerequisites
28
28
29
-
1. You have installed the `op-deployer` binary following the instructions in [deployer docs](/builders/chain-operators/tools/op-deployer#installation).
30
-
After installation, extract the `op-deployer` into your `PATH` and `cd op-deployer`.
31
-
32
-
2. You have created and customized an intent file in a `.deployer` directory, typically by running:
1. You have installed the `op-deployer` binary following the instructions in [deployer docs](/builders/chain-operators/tools/op-deployer#installation).
30
+
After installation, extract the `op-deployer` into your `PATH` and `cd op-deployer`.
31
+
2. You have created and customized an intent file in a `.deployer` directory, typically by running:
*genesis.json is the file you will provide to your execution client (e.g. op-geth).
68
-
*rollup.json is the file you will provide to your consensus client (e.g. op-node).
63
+
* genesis.json is the file you will provide to your execution client (e.g. op-geth).
64
+
* rollup.json is the file you will provide to your consensus client (e.g. op-node).
69
65
70
66
### Step 3: Initialize your off-chain components
71
67
72
68
Once you have `genesis.json` and `rollup.json`:
73
69
74
-
1.Initialize op-geth using genesis.json.
75
-
2.Configure op-node with rollup.json.
76
-
3.Set up additional off-chain infrastructure as needed (block explorer, indexers, etc.). For more on architecture, see [Architecture overview](/builders/chain-operators/architecture).
70
+
1. Initialize op-geth using genesis.json.
71
+
2. Configure op-node with rollup.json.
72
+
3. Set up additional off-chain infrastructure as needed (block explorer, indexers, etc.). For more on architecture, see [Architecture overview](/builders/chain-operators/architecture).
77
73
78
74
### Step 3: Get data
79
75
80
76
Now that you have your `genesis.json` and `rollup.json` you can spin up a node on your network.
81
77
You can also use the following inspect subcommands to get additional data:
82
78
83
-
````bash
79
+
```bash
84
80
./bin/op-deployer inspect l1 --workdir .deployer <l2-chain-id># outputs all L1 contract addresses for an L2 chain
85
81
./bin/op-deployer inspect deploy-config --workdir .deployer <l2-chain-id># outputs the deploy config for an L2 chain
0 commit comments