2022-06-27 14:24:55 +00:00
# Run a separate validator client
2022-07-22 19:47:24 +00:00
!!! warning
2023-04-11 15:42:35 +00:00
Some features of the validator client, such as the metrics server, are currently in BETA and details may change in response to community feedback.
Please consult the `--help` screen for more details.
2022-06-27 14:24:55 +00:00
2022-11-13 06:59:55 +00:00
By default, Nimbus integrates the validator client into the main beacon node process - this is a simple, safe and efficient way to run a validator.
2022-06-27 14:24:55 +00:00
2023-04-11 15:42:35 +00:00
Advanced users may wish to run validators in a separate process, allowing more flexible deployment strategies.
The Nimbus beacon node supports both its own and third-party validator clients via the built-in [REST API ](./rest-api.md ).
2022-06-27 14:24:55 +00:00
2022-07-22 19:47:24 +00:00
!!! warning
2023-04-11 15:42:35 +00:00
So far, all slashings with known causes have been linked to overly complex setups involving separation between beacon node and validator client!
Only use this setup if you've taken steps to mitigate the increased risk.
2022-06-27 14:24:55 +00:00
## Setup
2023-04-27 21:30:58 +00:00
To run a separate validator client, you must first make sure that your beacon node has its REST API enabled: start it with the `--rest` option.
2022-06-27 14:24:55 +00:00
Next, choose a data directory for the validator client and import the keys there:
```sh
build/nimbus_beacon_node deposits import \
--data-dir:build/data/vc_shared_prater_0 "< YOUR VALIDATOR KEYS DIRECTORY > "
```
2022-07-22 19:47:24 +00:00
!!! warning
2023-04-11 15:42:35 +00:00
Do not use the same data directory for beacon node and validator client!
They will both try to load the same keys which may result in slashing!
2022-06-27 14:24:55 +00:00
2022-07-22 19:47:24 +00:00
!!! warning
If you are migrating your keys from the beacon node to the validator client, simply move the `secrets` and `validators` folders in the beacon node data directory to the data directory of the validator client
2022-06-27 14:24:55 +00:00
With the keys imported, you are ready to start validator client:
```sh
build/nimbus_validator_client \
--data-dir:build/data/vc_shared_prater_0
```
2022-11-13 06:59:55 +00:00
# Options
2022-06-27 14:24:55 +00:00
2022-11-13 06:59:55 +00:00
See the [validator client options ](./validator-client-options.md ) page for more information about beacon node roles, redundant setups and sentry nodes!