This role deploys an Ethereum validator client written by Nimbus Team that should run together with a beacon node.
The role will:
- Checkout a branch from the nimbus-eth2 repo
- Build it using the
build.shBash script - Schedule regular builds using Systemd timers
- Start a node by defining a Systemd service
The service exposes three ports by default:
5052- Keymanager API port. Must NEVER be public.8108- Prometheus metrics port. Should not be public.
Add to your requirements.yml file:
- name: infra-role-validator-client
src: git+git@github.com:status-im/infra-role-validator-client.git
scm: gitThe crucial settings are:
validator_client_service_name: 'validator-client-{{ validator_client_network }}-{{ validator_client_network }}'
validator_client_network: 'mainnet'
validator_client_repo_branch: 'stable'
validator_client_beacon_node_url: ['http://127.0.0.1:5052']
validator_client_suggested_fee_recipient: '0xChangeMeToAddrThatWillReceiveTrasnactionFeeRewards'You might want to change logging level or enable payload builder if beacon node has it:
validator_client_log_level: 'INFO'
validator_client_payload_builder_enabled: trueTo enable the keymanager API a token needs to be specified.
validator_client_keymanager_enabled: true
validator_client_keymanager_token: '{{lookup("bitwarden", "nimbus/keymanager", field="token")}}'Assuming the stable branch was built you can manage the service with:
sudo systemctl start validator-client-mainnet-stable
sudo systemctl status validator-client-mainnet-stable
sudo systemctl stop validator-client-mainnet-stableYou can view logs under:
tail -f /data/validator-client-mainnet-stable/logs/service.logAll node data is located in /data/validator-client-mainnet-stable/data.
A timer will be installed to build the image:
> sudo systemctl list-units --type=service '*validator-client-*'
UNIT LOAD ACTIVE SUB DESCRIPTION
validator-client-mainnet-stable.service loaded active running Validator Client on mainnet network (stable)
validator-client-mainnet-testing.service loaded active running Validator Client on mainnet network (testing)
validator-client-mainnet-unstable.service loaded active running Validator Client on mainnet network (unstable)To rebuild the image:
> sudo systemctl start update-validator-client-mainnet-stable
> sudo systemctl status update-validator-client-mainnet-stable
○ update-validator-client-mainnet-unstable.service - Update validator-client-mainnet-unstable
Loaded: loaded (/etc/systemd/system/update-validator-client-mainnet-unstable.service; static)
Active: inactive (dead) since Mon 2026-05-18 14:50:09 UTC; 29min ago
TriggeredBy: ● update-validator-client-mainnet-unstable.timer
Docs: https://github.com/status-im/infra-role-systemd-timer
Process: 3502060 ExecStart=/nix/var/nix/profiles/default/bin/nix build --no-write-lock-file --refresh git+https://github.com/status-im/nimbus-eth2?submodules=1&ref=unstable#validator_client_gcc11 (code=exited, status=0/SUCCESS)
Process: 3508582 ExecStartPost=/bin/systemctl restart validator-client-mainnet-unstable.service (code=exited, status=0/SUCCESS)
Main PID: 3502060 (code=exited, status=0/SUCCESS)
CPU: 8.770s
nix[3502060]: Pass '--accept-flake-config' to trust it
nix[3502060]: warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
nix[3502060]: Pass '--accept-flake-config' to trust it
nix[3502060]: warning: not writing modified lock file of flake 'git+https://github.com/status-im/nimbus-eth2?ref=unstable&submodules=1':
nix[3502060]: this derivation will be built:
nix[3502060]: /nix/store/9ffxqqvdllqvb210hid0jd1db6dcp3zz-nimbus-eth2-26.5.0-00000000.drv
nix[3502060]: building '/nix/store/9ffxqqvdllqvb210hid0jd1db6dcp3zz-nimbus-eth2-26.5.0-00000000.drv'...
systemd[1]: update-validator-client-mainnet-unstable.service: Deactivated successfully.
systemd[1]: Finished Update validator-client-mainnet-unstable.
systemd[1]: update-validator-client-mainnet-unstable.service: Consumed 8.770s CPU time.
To check full build logs use:
journalctl -u update-validator-client-mainnet-stable.serviceDue to being part of Status infra this role assumes availability of certain things:
- The
iptables-persistentmodule - Nix