Execute the validator client
Last updated
Last updated
Please make sure you have and .
You can start the Validator Client with the following command:
Since the Validator Client requires the private key of the Validator account (encrypted in the keystore file) to sign the transactions, you need to provide the keystore file's password at runtime. There are many ways to input the password:
Using the --pwdFile
parameter
Save the password in a file, then pass the file path using the --pwdFile
parameter when starting the client.
For example, if the password 123456
is saved in /home/exsat/password
, you can start the client with:
Storing it in the .env
file
Save the keystore password directly in the .env
file. For example:
Then directly start the Client:
Inputting it during runtime Simply run the Client:
The Client will prompt you to enter the keystore file password manually.
Considerations
Options 1 and 2 expose the keystore password directly, making them less secure.
Option 3 does not expose the password but requires manual input each time the client is restarted, which is complicated for auto execution.
Choose the password input method that best suits your security and operational requirements.
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.
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.
You can also start the Validator Client using Screen with the keystore password saved in a file or in the .env file. Take using --pwdFile
parameter as an example:
If your Validator Client is running correctly, the following logs should appear on your screen:
Refer to to learn how to save logs to file.