Skip to main content

Setup Validator Node

This guide will walk you through setting up a validator node on the Ditto Network. You can choose between running the node directly on your system or using Docker.

Systemd Setup

Docker Setup

Systemd Unit Setup

All commands in this section should be executed as the root user.

Prerequisites

  • Linux debian-based
  • Root access to your system
To install node run follow command:
You need to enter the validator’s private key in hex format.
To create a dedicated kepler user (recommended):
  1. Create user:
  1. Grant sudo:
  1. Switch to user:
  1. Then run this script with sudo
This script sets up a Kepler validator node on your system. It:
  1. Downloads and installs the keplerd binary
  2. Initializes the node configuration in your home directory
  3. Configures the node with proper gas prices and seeds
  4. Sets your private validator key
  5. Downloads the genesis file
  6. Sets up and starts a systemd service
If you already have a node configured, it will ask before reinitializing. The script must be run with sudo to install the binary and service.
Look for logs where height= keeps increasing, which indicates successful syncing with the network:

Running as a Docker Container

Prerequisites

  • Docker installed
  • Docker Compose installed

Configuration

  1. Create the working directory structure:
  1. Create a temporary container to generate configuration:
  1. Set up your validator key in config/priv_validator_key.json
  2. Configure ./config/app.toml:
  1. Configure ./config/config.toml:
  1. Download the genesis file:
  1. Create docker-compose.yml:
  1. Start the node:
  1. Monitor the logs:
Ensure logs show increasing height= values, indicating successful network synchronization:

Checking Synchronization Status

To verify your node’s synchronization status, run:
Make sure your node is fully synchronized before proceeding with any validator operations.