Node Command
The node
command starts the anchor client as a SSV operator node.
anchor node [OPTIONS]
Options
External APIs
Option | Description | Default |
---|---|---|
--beacon-nodes <URLS> | Comma-separated beacon node HTTP URLs | http://localhost:5052 |
--execution-rpc <URLS> | Comma-separated execution node RPC URLs | http://localhost:8545 |
--execution-ws <URL> | Execution node websocket URL | ws://localhost:8546 |
--beacon-node-tls-certs <FILES> | Certificate files for beacon node connections | None |
--execution-node-tls-certs <FILES> | Certificate files for execution node connections | None |
HTTP API
Option | Description | Default |
---|---|---|
--http | Enable the HTTP API sever | Disabled |
--http-address <ADDRESS> | Listen address for HTTP API | None |
--http-port <PORT> | Listen port for HTTP API | 5062 if --http is set |
--http-allow-origin <ORIGIN> | Set CORS allowed origin | None |
--unencrypted-http-transport | Safety flag to acknowledge HTTP is unencrypted | Required if --http-address is set |
Metrics Options
Option | Description | Default |
---|---|---|
--metrics | Enable metrics server | Disabled |
--metrics-address <ADDRESS> | Listen address for metrics server | 127.0.0.1 if --metrics is set |
--metrics-port <PORT> | Listen port for metrics server | 5164 if --metrics is set |
Network Options
Option | Description | Default |
---|---|---|
--listen-address <ADDRESS> | Network address to listen for UDP & TCP connections | 0.0.0.0 |
--port <PORT> | Base port for all network connections | 13001 |
--port6 <PORT> | Base port for IPv6 network connections | Same as --port |
--discovery-port <PORT> | UDP port for discovery | Same as --port if specified, otherwise 12001 |
--discovery-port6 <PORT> | UDP port for IPv6 discovery | Same as --discovery-port |
--quic-port <PORT> | UDP port for QUIC protocol | --port + 1 |
--quic-port6 <PORT> | UDP port for IPv6 QUIC protocol | --port6 + 1 |
--boot-nodes <NODES> | Comma-separated ENRs or Multiaddrs to bootstrap the network | None |
--enr-address <ADDRESS> | IPv4 address to broadcast in the node's ENR | None |
--enr-address6 <ADDRESS> | IPv6 address to broadcast in the node's ENR | None |
--enr-udp-port <PORT> | UDP port to advertise in the node's ENR | None |
--enr-tcp-port <PORT> | TCP port to advertise in the node's ENR | None |
--enr-quic-port <PORT> | QUIC port to advertise in the node's ENR | None |
--enr-udp6-port <PORT> | IPv6 UDP port to advertise in the node's ENR | None |
--enr-tcp6-port <PORT> | IPv6 TCP port to advertise in the node's ENR | None |
--enr-quic6-port <PORT> | IPv6 QUIC port to advertise in the node's ENR | None |
--subscribe-all-subnets | Subscribe to all subnets regardless of committee membership | Disabled |
Security Options
Option | Description | Default |
---|---|---|
--key-file <PATH> | Path to the operator key | Detected in data dir |
--password-file <PATH> | Path to a file containing the key password | None |
--disable-slashing-protection | Disable slashing protection (NOT RECOMMENDED) | None |
Payload Building Options
Option | Description | Default |
---|---|---|
--builder-proposals | Use external block building | Disabled |
--builder-boost-factor <FACTOR> | Percentage multiplier for builder payload value | None |
--prefer-builder-proposals | Always prefer builder blocks regardless of value | Disabled |
Logging Options
Option | Description | Default |
---|---|---|
--debug-level <LEVEL> | Verbosity for terminal logs | info |
--logfile-debug-level <LEVEL> | Verbosity for file logs | debug |
--logfile-max-size <SIZE> | Maximum size of each log file in MB | 50 |
--logfile-max-number <NUMBER> | Maximum number of log files to keep | 100 |
--logfile-dir <DIR> | Directory to store log files | Same as --datadir |
--logfile-compression | Compress old log files | Disabled |
Examples
anchor node \
--network hoodi \
--datadir /data/anchor \
--beacon-nodes https://beacon1.example.com,https://beacon2.example.com \
--execution-rpc https://execution1.example.com,https://execution2.example.com \
--execution-ws wss://execution1.example.com \
--listen-addresses 10.0.0.10 \
--port 9100 \
--http \
--http-address 127.0.0.1 \
--http-port 9200 \
--unencrypted-http-transport \
--metrics \
--metrics-address 127.0.0.1 \
--metrics-port 9300 \
--password-file /path/to/your/password