Getting Started
This guide is intended for validators running on bare-metal servers and explains how Union releases work. Check out the NixOS and the Kubernetes guide for more production-ready deployments.
Validators are the backbone of the network. Becoming one requires significant token bonding and delegations, and is not intended for non-power users.
Obtaining uniond
You can obtain uniond
from a recent release.
Where UNIOND_VERSION
is v0.24.0
Where UNIOND_VERSION
is v0.24.0
Verify that the binary works on your server by running:
For convenience, we can add the binary to the PATH
, to make it callable from anywhere.
Using Docker
We also provide containers in our package registry.
Where UNIOND_VERSION
is v0.24.0
When running the container, make sure to map a volume to the path passed in --home
options to ensure data persistence. From here on the guide assumes the usage of a regular binary. The docker-compose section is more suited for docker users.
Initialization
We’ll need to set up a few configuration files and obtain the genesis.json before we can run the node.
First, set some environment variables, which are used throughout initialization.
Then we’ll have uniond
initialize our data and configuration directories. By default, /User/{USER}/.uniond
is used.
Seeds
Next, edit ~/.union/config/config.toml
. We’ll set the seeds to ensure your node can connect to the peer-to-peer network.
For union-testnet-8
replace seeds = ""
with:
Genesis Configuration
Download the genesis.json
and copy it to your uniond
home directory.
Registration
To join as a validator, you need to submit a registration transaction. You can do this from the command line on your validator node.
First, add a wallet that holds Union tokens.
To submit the registration transaction and become a validator, you must submit a create-validator
transaction:
Systemd Service
We recommend running uniond
as a systemd service. Create a file in /etc/systemd/system
called uniond.service
. Make sure to replace $USER with your username.
You should be able to view the node logs by executing
It’s then recommended to back up these files from ~/.union/config
in a secure location:
priv_validator_key.json
node_key.json