Quickstart
Setting up a Validator
Learn how to set up and run a Trunk validator node
Setting up a Validator Node
This guide will walk you through the process of setting up and running a Trunk validator node. Validators play a crucial role in the Trunk network by verifying and processing transactions.
Prerequisites
Before you begin, ensure you have the following installed:
Quick Start
Follow these steps to get your validator node up and running:
- Clone the Trunk Network repository:
- Install dependencies:
- Configure your validator:
Edit the .env
file and set your validator configuration:
- Start the validator:
Your validator should now be running and connecting to the Trunk network.
Configuration Options
The following configuration options are available in the .env
file:
Option | Description | Default |
---|---|---|
VALIDATOR_NAME | Unique name for your validator | validator |
VALIDATOR_PORT | Port to run the validator on | 8545 |
NETWORK_ENV | Network environment (mainnet/testnet) | testnet |
LOG_LEVEL | Logging verbosity | info |
Monitoring
Once your validator is running, you can monitor its status:
- View validator logs:
- Check validator status:
- View network metrics at
http://localhost:8545/metrics
Best Practices
- Regularly update your validator software
- Monitor system resources
- Use secure credentials
- Maintain good network connectivity
- Back up your validator configuration
Troubleshooting
Common issues and solutions:
Validator Won’t Start
- Check if the port is already in use
- Verify Node.js version
- Ensure all dependencies are installed
Network Connection Issues
- Check your firewall settings
- Verify network configuration
- Ensure your node can reach other network peers
Performance Issues
- Monitor system resources
- Check log files for errors
- Verify hardware meets minimum requirements
Next Steps
Support
If you need help with your validator setup: