Skip to content

Node Command

The node command starts the anchor client as a SSV operator node.

anchor node [OPTIONS]

Options

External APIs

OptionDescriptionDefault
--beacon-nodes <NETWORK_ADDRESSES>Comma-separated beacon node HTTP URLshttp://localhost:5052
--execution-rpc <NETWORK_ADDRESSES>Comma-separated execution node RPC URLshttp://localhost:8545
--execution-ws <NETWORK_ADDRESSES>Execution node websocket URLws://localhost:8546
--beacon-nodes-tls-certs <CERTIFICATE-FILES>Comma-separated paths to custom TLS certificates for beacon nodes (PEM format)None
--execution-nodes-tls-certs <CERTIFICATE-FILES>Comma-separated paths to custom TLS certificates for execution nodes (PEM format)None

HTTP API

OptionDescriptionDefault
--httpEnable the HTTP API severDisabled
--http-address <ADDRESS>Listen address for HTTP APINone
--http-port <PORT>Listen port for HTTP API5062 if --http is set
--http-allow-origin <ORIGIN>Set CORS allowed originNone
--unencrypted-http-transportSafety flag to acknowledge HTTP is unencryptedRequired if --http-address is set

Metrics Options

OptionDescriptionDefault
--metricsEnable metrics serverDisabled
--metrics-address <ADDRESS>Listen address for metrics server127.0.0.1 if --metrics is set
--metrics-port <PORT>Listen port for metrics server5164 if --metrics is set

Network Options

OptionDescriptionDefault
--listen-addresses [<ADDRESS>...]Network addresses to listen for UDP & TCP connections (can be set multiple times for IPv4 and IPv6)0.0.0.0
--port <PORT>TCP/UDP ports for IPv4 (discovery and TCP will use this value, QUIC will use this + 1)12001 (discovery), 13001 (TCP)
--port6 <PORT>TCP/UDP ports for IPv6 when listening over both IPv4 and IPv6 (QUIC will use this + 1)Same as --port
--discovery-port <PORT>UDP port for discoverySame as --port if specified, otherwise 12001
--discovery-port6 <PORT>UDP port for IPv6 discoverySame 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 <BOOT_NODES>Comma-separated ENRs or Multiaddrs to bootstrap the networkNone
--enr-address <ADDRESS>IPv4 address to broadcast in the node's ENRNone
--enr-address6 <ADDRESS>IPv6 address to broadcast in the node's ENRNone
--enr-udp-port <PORT>UDP port to advertise in the node's ENRNone
--enr-tcp-port <PORT>TCP port to advertise in the node's ENRNone
--enr-quic-port <PORT>QUIC port to advertise in the node's ENRNone
--enr-udp6-port <PORT>IPv6 UDP port to advertise in the node's ENRNone
--enr-tcp6-port <PORT>IPv6 TCP port to advertise in the node's ENRNone
--enr-quic6-port <PORT>IPv6 QUIC port to advertise in the node's ENRNone
--disable-enr-auto-updateDisable discovery from automatically updating the ENR with external addressesDisabled
--subscribe-all-subnetsSubscribe to all subnets regardless of committee membershipDisabled

Security Options

OptionDescriptionDefault
--key-file <PATH>Path to the operator key file (.txt for unencrypted, .json for encrypted)Detected in data dir
--password-file <PATH>Path to a file containing the key password for decryptionNone

Payload Building Options

OptionDescriptionDefault
--builder-proposalsQuery Beacon Node for only block headers during proposals and sign over headersDisabled
--builder-boost-factor <UINT64>Percentage multiplier to apply to builder's payload valueNone
--prefer-builder-proposalsAlways prefer builder blocks regardless of payload valueDisabled
--gas-limit <INTEGER>Gas limit for all builder proposals for all validators36000000

Logging Options

OptionDescriptionDefault
--debug-level <DEBUG_LEVEL>Verbosity for terminal logsINFO
--logfile-debug-level <LOGFILE_DEBUG_LEVEL>Verbosity for file logsDEBUG
--logfile-max-size <SIZE>Maximum size of each log file in MB (set to 0 to disable)50
--logfile-max-number <NUMBER>Maximum number of log files to keep (set to 0 to disable)10
--logfile-dir <DIR>Directory to store log filesSame as --data-dir
--logfile-compressionCompress old log filesDisabled
--logfile-colorEnable colors in logfileDisabled
--discv5-log-level <DISCV5_LOG_LEVEL>Verbosity level for discv5 dependency log fileDEBUG
--libp2p-log-level <LIBP2P_LOG_LEVEL>Verbosity level for libp2p dependency log fileDEBUG

Additional Network and Performance Options

OptionDescriptionDefault
--disable-gossipsub-peer-scoringDisable gossipsub peer scoringEnabled
--disable-latency-measurement-serviceDisable the latency measurement serviceEnabled
--enable-high-validator-count-metricsEnable per validator metrics for > 64 validatorsAuto-enabled for ≤ 64 validators

Examples

anchor node \
  --network hoodi \
  --data-dir /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