Execute the validator client

Please make sure you have initialized the account and configured the BTC RPC node.

Please ensure that the keystore path is properly configured in the .env file by setting VALIDATOR_KEYSTORE_FILE.

There are several methods to keep the Validator client running long-term on a Linux server. Below are some commonly used methods.

Using pm2

PM2 is a process manager for Node.js applications on Linux, allowing you to easily manage, monitor, and keep applications running in the background. You could execute below command to run the Validator client using pm2.

Please ensure that the password of the keystore is properly configured in the .env file by setting VALIDATOR_KEYSTORE_PASSWORD.

pm2 start ecosystem.config.js --only validator

Using Screen, manully input password

The Screen command in Linux allows you to run commands in the background, keeping them active even after you disconnect from the terminal session.

You could execute below command to run the Validator client , and manully input the password of the keystore. This approach helps prevent your password from appearing in plain text in configuration files or command lines, reducing the risk of password exposure.

screen -R validator
yarn start-validator
#input the password

Using Screen, password provided as parameter

You can start the Validator Client using Screen, with the keystore password passed as a parameter in the command (e.g., password: 123456).

screen -R validator
yarn start-validator --pwd=123456

Or the password is saved in a file (e.g, /root/.exsat/validator/password)

screen -R validator
yarn start-validator --pwdFile=/root/.exsat/validator/password

Last updated