Skip to main content

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

--devnet

Specify whether to start up a Hildr devnet node.

network

--network=<String|FILE>

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

l1-rpc-url

--l1-rpc-url=<URL>

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

l1-ws-rpc-url

--l1-ws-rpc-url=<URL>

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

l1-beacon-url

--l1-beacon-url=<URL>

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

--l1-beacon-archiver-url

--l1-beacon-url=<URL>

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

--l2-rpc-url=<URL>

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

jwt-secret

--jwt-secret=<HEX>

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

--jwt-file=<FILE>

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

--l2-engine-url=<URL>

sync-mode

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

Specifies how hildr node should sync the L2 chain.

checkpoint-hash

--checkpoint-hash=<BLOCK HASH>

A L2 checkpoint block hash to use for checkpoint syncing.

checkpoint-sync-url

--checkpoint-sync-url=<URL>

A trusted L2 RPC URL to use for checkpoint syncing.

disc-boot-nodes

--disc-boot-nodes=<enode://id@host:port>[,<enr://id@host:port>...]

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

--disc-port=<PORT>

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

rpc-addr

--rpc-addr=<IP>

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

rpc-port

--rpc-port=<PORT>

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

log-level

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

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