Skip to content

lightclient CLI Command


Run lightclient


Examples

Run lightclient with goerli network

./lodestar lightclient --network goerli


lightclient Options

--dataDir

description: Lodestar root data directory

type: string


--network

description: Name of the Ethereum Consensus chain network to join

type: string

choices: "mainnet", "gnosis", "goerli", "ropsten", "sepolia", "holesky", "chiado", "ephemery", "dev"

default: "mainnet"


--paramsFile

description: Network configuration file

type: string


--terminal-total-difficulty-override

description: Terminal PoW block TTD override

type: string


--terminal-block-hash-override

description: Terminal PoW block hash override

type: string


--terminal-block-hash-epoch-override

description: Terminal PoW block hash override activation epoch

type: string


--logLevel

description: Logging verbosity level for emitting logs to terminal

type: string

choices: "error", "warn", "info", "verbose", "debug", "trace"

default: "info"


--logFile

description: Path to output all logs to a persistent log file, use 'none' to disable

type: string


--logFileLevel

description: Logging verbosity level for emitting logs to file

type: string

choices: "error", "warn", "info", "verbose", "debug", "trace"

default: "debug"


--logFileDailyRotate

description: Daily rotate log files, set to an integer to limit the file count, set to 0 (zero) to disable rotation

type: number

default: 5


--beaconApiUrl

description: Url to a beacon node that support lightclient API

required: true

type: string


--checkpointRoot

description: Checkpoint root hex string to sync the lightclient from, start with 0x

required: true

type: string