Configuration file
Pass a TOML configuration file with--config:
Generating a config file
The easiest way to produce a valid starting configuration is to export the current defaults withdumpconfig:
--config.
Example TOML snippet
Flag reference
Node identity
Node identity
Sync and state
Sync and state
Networking
Networking
Transaction pool
Transaction pool
HTTP JSON-RPC
HTTP JSON-RPC
WebSocket JSON-RPC
WebSocket JSON-RPC
IPC
IPC
Authenticated RPC (Engine API)
Authenticated RPC (Engine API)
Logging
Logging
Common configuration patterns
1
Generate a baseline config
Export the current defaults so you have a complete starting point:
2
Edit the config file
Open the file and adjust the sections relevant to your deployment. At minimum you will probably want to set
DataDir, the HTTP/WS endpoints, and the SyncMode.3
Start Geth with the config
