bootnode
Run Teku in bootnode-only mode.
network
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --network=<NETWORK>
teku bootnode --network=mainnet
TEKU_NETWORK=mainnet
network: "mainnet"
Predefined network configuration. The default is mainnet.
Possible values are:
| Network | Chain | Type | Description |
|---|---|---|---|
mainnet | Consensus layer | Production | Main network |
holesky | Consensus layer | Test | Multi-client testnet |
hoodi | Consensus layer | Test | Multi-client testnet |
ephemery | Consensus layer | Test | Multi-client testnet |
sepolia | Consensus layer | Test | Multi-client testnet |
minimal | Consensus layer | Test | Used for local testing and development networks |
gnosis | Consensus layer | Production | Network for the Gnosis chain |
chiado | Consensus layer | Test | Gnosis testnet |
lukso | Consensus layer | Production | Network for the Lukso chain |
p2p-port
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --p2p-port=<PORT>[,<PORT>...]...
teku bootnode --p2p-port=9000
TEKU_P2P_PORT=9000
p2p-port: 9000
The P2P listening ports (UDP and TCP). The default is 9000.
p2p-advertised-ip
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --p2p-advertised-ip=<IP_ADDRESS>
teku bootnode --p2p-advertised-ip=192.168.1.132
TEKU_P2P_ADVERTISED_IP=192.168.1.132
p2p-advertised-ip: "192.168.1.132"
The peer-to-peer IP address(es) to advertise. The default address is 127.0.0.1.
p2p-private-key-file
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --p2p-private-key-file=<PATH_TO_FILE>
teku bootnode --p2p-private-key-file=/home/me/me_node/key
TEKU_P2P_PRIVATE_KEY_FILE=/home/me/me_node/key
p2p-private-key-file: "/home/me/me_node/key"
The file containing the node's private key.
If a file doesn't exist at the specified path, Teku creates a new file and P2P private key to store inside.
Ensure you specify the complete file path, including the file name, and not only the directory location.
config-file
- Syntax
- Example
- Environment variable
teku bootnode --config-file=<FILE>
teku bootnode --config-file=/home/me/me_node/config.yaml
TEKU_CONFIG_FILE=/home/me/me_node/config.yaml
Path to the YAML configuration file. The default is none.
data-base-path, data-path
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --data-base-path=<PATH>
teku bootnode --data-base-path=/home/me/me_node
TEKU_DATA_BASE_PATH=/home/me/me_node
data-base-path: "/home/me/me_node"
Path to the Teku base directory for storage. The default directory is OS-dependent:
- macOS:
~/Library/teku - Unix/Linux:
$XDG_DATA_HOME/tekuif$XDG_DATA_HOMEis set; otherwise~/.local/share/teku - Windows:
%localappdata%\teku.
The default Docker image location is /root/.local/share/teku.
log-color-enabled
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --log-color-enabled[=<BOOLEAN>]
teku bootnode --log-color-enabled=false
TEKU_LOG_COLOR_ENABLED=false
log-color-enabled: false
Specify whether status and event log messages include a console color display code. The default is true.
log-destination
- Syntax
- Example
- Environment variable
- Configuration file
teku bootnode --log-destination=<LOG_DESTINATION>
teku bootnode --log-destination=CONSOLE
TEKU_LOG_DESTINATION=CONSOLE
log-destination: "CONSOLE"
Specify where to output log information. Valid options are:
BOTHCONSOLEDEFAULT_BOTHFILE
The default is DEFAULT_BOTH. When using BOTH or DEFAULT_BOTH, system updates such as blockchain events are displayed on the console, and errors and other information are logged to a file.
Specify the log file with the --log-file command-line option.
For production systems we recommend using the CONSOLE or FILE options to ensure all log information is available in one place.
Use DEFAULT_BOTH when using a custom Log4J2 configuration file.
Any other option applies the custom logging changes on top of its default settings.