Skip to content

Commit 1a60fac

Browse files
committed
add start op-node comment
1 parent 61a743b commit 1a60fac

File tree

1 file changed

+44
-16
lines changed

1 file changed

+44
-16
lines changed

RUN_NODE_ON_SEPOLIA.md

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,60 @@ Just need to modify the access permissions of `data_sepolia` to fix it:
8181
sudo chmod 777 data_sepolia -R
8282
```
8383

84-
2. Run a hildr
84+
2. Run a op-node
8585

8686
pull docker image:
8787

8888
```shell
89-
docker pull ghcr.io/optimism-java/hildr:latest
89+
docker pull us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.12.2
9090
```
9191

92-
get IP of the op-besu container, and hildr container will use it to connect to op-besu via the docker bridge:
92+
get IP of the op-besu container, and op-node or hildr container will use it to connect to op-besu via the docker bridge:
9393

9494
```bash
9595
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' op-besu
9696
```
9797

98+
Run a op-node:
99+
```shell
100+
docker run -d -it --name op-node -p 11545:11545 \
101+
-v ./jwt.txt:/jwt/jwt.txt \
102+
--entrypoint op-node \
103+
us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.12.2 \
104+
--network op-sepolia \
105+
--l1.rpckind=basic \
106+
--l1=<l1-rpc-url> \
107+
--l2=<op-besu-engine-rpc-url> \
108+
--rpc.addr=0.0.0.0 \
109+
--rpc.port=11545 \
110+
--l2.jwt-secret=/jwt/jwt.txt \
111+
--l1.trustrpc \
112+
--l1.beacon=<l1-beacon-sepolia-rpc-url> \
113+
--syncmode=consensus-layer
114+
```
115+
116+
The synchronization needs to handle empty messages at the beginning, and the actual block synchronization will take place about 10 minutes later.
117+
118+
Use curl get block data from op-besu:
119+
120+
```bash
121+
curl --request POST 'http://localhost:8545' \
122+
--header 'Content-Type: application/json' \
123+
--data-raw '{"id":2, "jsonrpc":"2.0", "method": "eth_getBlockByNumber", "params":["0xe", true]}'
124+
```
125+
126+
You can confirm whether the block and transaction information is correct through the [Sepolia network's blockchain explorer](https://sepolia-optimism.etherscan.io/).
127+
128+
3. Or run a hildr
129+
130+
Hildr is just can run on amd64 architecture.
131+
132+
pull docker image:
133+
134+
```shell
135+
docker pull ghcr.io/optimism-java/hildr:latest
136+
```
137+
98138
run a hildr node:
99139

100140
```bash
@@ -111,16 +151,4 @@ ghcr.io/optimism-java/hildr:latest \
111151
--rpc-port 11545 \
112152
--log-level INFO \
113153
--sync-mode full
114-
```
115-
116-
The synchronization needs to handle empty messages at the beginning, and the actual block synchronization will take place about 10 minutes later.
117-
118-
Use curl get block data from op-besu:
119-
120-
```bash
121-
curl --request POST 'https://localhost:8545' \
122-
--header 'Content-Type: application/json' \
123-
--data-raw '{"id":2, "jsonrpc":"2.0", "method": "eth_getBlockByNumber", "params":["0xe", true]}'
124-
```
125-
126-
You can confirm whether the block and transaction information is correct through the Sepolia network's blockchain explorer.
154+
```

0 commit comments

Comments
 (0)