Skip to content

Latest commit

 

History

History
399 lines (255 loc) · 6.56 KB

cmd_line_options.md

File metadata and controls

399 lines (255 loc) · 6.56 KB

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

Command line options

The reference describes the syntax of Hildr command line interface(CLI) options.

The command-line help listing is reproduced below for your convenience. The same information can be obtained at any time from your Hildr instance by running:

java --enable-preview -cp hildr-node.jar io.optimism.Hildr --help

Options

devnet

```shell
--devnet
```

Specify whether to start up a Hildr devnet node.

network

```shell
--network=<String|FILE>
```
```shell
--network=optimism-sepolia
```

When using the --network option, you can specify a network name or a path to a rollup configuration file.

l1-rpc-url

```shell
--l1-rpc-url=<URL>
```
```shell
--l1-rpc-url=https://eth-sepolia.g.alchemy.com/v2/Qmy...
```

The URL of the L1 Ethereum node that your Hildr node will connect to.

l1-ws-rpc-url

```shell
--l1-ws-rpc-url=<URL>
```
```shell
--l1-ws-rpc-url=wss://eth-sepolia.g.alchemy.com/v2/Qmy...
```

The URL of the L1 Ethereum node that your Hildr node will connect to via Websocket.

l1-beacon-url

```shell
--l1-beacon-url=<URL>
```
```shell
--l1-beacon-url=https://few-sleek-sound.ethereum-sepolia.quiknode.pro/8e8...2e1
```

The URL of the L1 Ethereum beacon node that your Hildr node will request to.

--l1-beacon-archiver-url

```shell
--l1-beacon-url=<URL>
```
```shell
--l1-beacon-url=https://few-sleek-sound.ethereum-sepolia.quiknode.pro/8e8...2e1
```

When the current blob data has been cleared by the beacon node and cannot be queried, the Hildr node will request this URL.

l2-rpc-url

```shell
--l2-rpc-url=<URL>
```
```shell
--l2-rpc-url=http://localhost:8545
```

The URL of the L2 Optimism Execution Client node that your Hildr node will connect to.

jwt-secret

```shell
--jwt-secret=<HEX>
```
```shell
--jwt-secret=2b3c0b6f...2a12ff2caaf90a
```

Engine API JWT Secret. This is used to authenticate with the Engine JSON-RPC API.Contents of file must be at least 32 hex-encoded bytes and not begin with 0x.

jwt-file

```shell
--jwt-file=<FILE>
```
```shell
--jwt-file=./jwt-secret.txt
```

Engine API JWT Secret File used to Hildr node when using the Engine JSON-RPC API (both HTTP and WebSocket). Contents of file must be at least 32 hex-encoded bytes and not begin with 0x.

l2-engine-url

```shell
--l2-engine-url=<URL>
```
```shell
--l2-engine-url=http://localhost:8551
```

sync-mode

```shell
--sync-mode=<full|checkpoint|execution-layer>
```
```shell
--sync-mode=full
```

Specifies how hildr node should sync the L2 chain.

checkpoint-hash

```shell
--checkpoint-hash=<BLOCK HASH>
```
```shell
--checkpoint-hash=0x102de6ffb001480cc...9393db90ea0409887d
```

A L2 checkpoint block hash to use for checkpoint syncing.

checkpoint-sync-url

```shell
--checkpoint-sync-url=<URL>
```
```shell
--checkpoint-sync-url=https://opt-sepolia.g.alchemy.com/v2/Qmy...
```

A trusted L2 RPC URL to use for checkpoint syncing.

disc-boot-nodes

```shell
--disc-boot-nodes=<enode://id@host:port>[,<enr://id@host:port>...]
```
```
--disc-boot-nodes=enode://node://[email protected]:30303,enr:-J24Q...TNjgufplG4N0Y3CCJAaDdWRwgiQG
```

A list of comma-separated enode URLs for P2P discovery(v4/v5) bootstrap.

When connecting to Mainnet or public testnets, the default is a predefined list of enode URLs.

disc-port

```shell
--disc-port=<PORT>
```
```shell
--disc-port=30303
```

The P2P listening ports (UDP and TCP). The default is 9876.

rpc-addr

```shell
--rpc-addr=<IP>
```
```
--rpc-addr=0.0.0.0
```

The IP of RPC server listening. The default is 0.0.0.0.

rpc-port

```shell
--rpc-port=<PORT>
```
```shell
--rpc-port=9545
```

The port of RPC server listening. The default is 9545.

log-level

```shell
--log-level=<INFO|DEBUG|TRACE|WARN|ERROR>
```
```shell
--log-level=INFO
```

The log level of the Hildr node. The default is INFO.