Skip to content

Commit

Permalink
feat: fix hildr doc
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Kai <[email protected]>
  • Loading branch information
GrapeBaBa committed Aug 22, 2024
1 parent 6c31855 commit 133a2f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
10 changes: 9 additions & 1 deletion docs/hildr-docs/run-a-node/use_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

# Use docker

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

## Pull docker image

```shell
docker pull ghcr.io/optimism-java/hildr:latest
```

## Copy in the JWT secret

Copy the JWT secret you generated when start execution client.

```bash
cp /path/to/jwt.txt .
```

## Start a Hildr node

<Tabs>
Expand Down
14 changes: 11 additions & 3 deletions docs/hildr-docs/run-a-node/use_jar.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

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

## Step1. Download the Hildr jar
## Download the Hildr jar

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

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

## Copy in the JWT secret

Copy the JWT secret you generated when start execution client.

```bash
cp /path/to/jwt.txt .
```

## Start a Hildr node

<Tabs>
Expand All @@ -23,7 +31,7 @@ wget https://github.com/optimism-java/hildr/releases/download/v0.4.4/hildr-node.
java --enable-preview \
-cp <the Hildr jar file> io.optimism.Hildr \
--network optimism-sepolia \
--jwt-secret ./jwt.hex \
--jwt-file ./jwt.txt \
--l1-rpc-url http://localhost:9545 \
--l1-ws-rpc-url ws://localhost:9546 \
--l1-beacon-url http://localhost:4000 \
Expand All @@ -43,7 +51,7 @@ wget https://github.com/optimism-java/hildr/releases/download/v0.4.4/hildr-node.
-cp <the Hildr jar file> io.optimism.Hildr \
--devnet \
--network <rollup.json file> \
--jwt-secret ./jwt.hex \
--jwt-file ./jwt.txt \
--l1-rpc-url http://localhost:9545 \
--l1-ws-rpc-url ws://localhost:9546 \
--l1-beacon-url http://localhost:4000 \
Expand Down

0 comments on commit 133a2f2

Please sign in to comment.