Skip to content

Commit 133a2f2

Browse files
committed
feat: fix hildr doc
Signed-off-by: Chen Kai <[email protected]>
1 parent 6c31855 commit 133a2f2

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

Diff for: docs/hildr-docs/run-a-node/use_docker.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
22

33
# Use docker
44

5-
You can use Docker to run [Hildr](https://github.com/optimism-java/hildr) as an Optimism CL node.
5+
You can use Docker to run [Hildr](https://github.com/optimism-java/hildr) as an Optimism rollup node.
66

77
## Pull docker image
88

99
```shell
1010
docker pull ghcr.io/optimism-java/hildr:latest
1111
```
1212

13+
## Copy in the JWT secret
14+
15+
Copy the JWT secret you generated when start execution client.
16+
17+
```bash
18+
cp /path/to/jwt.txt .
19+
```
20+
1321
## Start a Hildr node
1422

1523
<Tabs>

Diff for: docs/hildr-docs/run-a-node/use_jar.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
66

77
Download and install the [Java JDK 21+](https://www.oracle.com/java/technologies/downloads/).
88

9-
## Step1. Download the Hildr jar
9+
## Download the Hildr jar
1010

1111
Download the [Hildr jar](https://github.com/optimism-java/hildr/releases) from Github.
1212

1313
```shell
1414
wget https://github.com/optimism-java/hildr/releases/download/v0.4.4/hildr-node.jar
1515
```
1616

17+
## Copy in the JWT secret
18+
19+
Copy the JWT secret you generated when start execution client.
20+
21+
```bash
22+
cp /path/to/jwt.txt .
23+
```
24+
1725
## Start a Hildr node
1826

1927
<Tabs>
@@ -23,7 +31,7 @@ wget https://github.com/optimism-java/hildr/releases/download/v0.4.4/hildr-node.
2331
java --enable-preview \
2432
-cp <the Hildr jar file> io.optimism.Hildr \
2533
--network optimism-sepolia \
26-
--jwt-secret ./jwt.hex \
34+
--jwt-file ./jwt.txt \
2735
--l1-rpc-url http://localhost:9545 \
2836
--l1-ws-rpc-url ws://localhost:9546 \
2937
--l1-beacon-url http://localhost:4000 \
@@ -43,7 +51,7 @@ wget https://github.com/optimism-java/hildr/releases/download/v0.4.4/hildr-node.
4351
-cp <the Hildr jar file> io.optimism.Hildr \
4452
--devnet \
4553
--network <rollup.json file> \
46-
--jwt-secret ./jwt.hex \
54+
--jwt-file ./jwt.txt \
4755
--l1-rpc-url http://localhost:9545 \
4856
--l1-ws-rpc-url ws://localhost:9546 \
4957
--l1-beacon-url http://localhost:4000 \

0 commit comments

Comments
 (0)