aksh-validator-cli
v1.0.1
Published
A decentralized uptime validator CLI
Readme
Validator CLI
A decentralized uptime validator CLI for monitoring website availability.
Requirements
- Node.js 14 or higher
- npm 6 or higher
- Connection to a validator hub server
Installation
Install globally with npm:
npm install -g validator-cliOr for local development:
# Clone or download the repository
# Then navigate to the project directory
cd validator-cli
# Install dependencies
npm install
# Create a global symlink to use the CLI from anywhere
npm linkGetting Started
Here's how to get up and running with the Validator CLI:
Make sure you have completed the installation steps above
Register as a validator (CLI-only)
validator-cli registerStart the validator client
validator-cli start
Usage
Getting Help
You can display help information using:
validator-cli -help
# or
validator-cli --helpAvailable Commands
validator-cli [command] [options]Generate Validator Keys
validator-cli generate-keysThis will generate a keypair for your validator in ~/.watchtower-validator.
Start the Validator
validator-cli start /path/to/privateKey.txtStart the validator using the default private key at ~/.watchtower-validator/privateKey.txt.
View Validator Info
validator-cli infoView Rewards
validator-cli rewardsCheck your accumulated rewards from validation work.
Ping a URL
validator-cli ping https://example.comManually ping a URL to check its status and response time.
Configuration
The validator uses a configuration file located at ~/.watchtower-validator/config.json. Example:
{
"hubServer": "ws://localhost:8081"
}Troubleshooting
WebSocket Connection Issues
If you encounter WebSocket connection errors, ensure that the hub server is running and accessible. Check the hubServer URL in your ~/.watchtower-validator/config.json file and make sure it is correct.
License
ISC
