Full Node Build
Install pre-requisites
Install Go
Follow the instructions here to install Go.
For an Ubuntu LTS, we can use:
Unless you want to configure in a non standard way, then set these in the .zshrc
in the user's home (i.e. ~/
) folder.
Add the "export Pathing" rules at the bottom, and then save the file:
After updating your ~/.zshrc
you will need to source it:
Build Daemon from source
To confirm that the installation has succeeded, you can run:
Configuration of Shell Variables
For this guide, we will be using shell variables. This will enable the use of the client commands verbatim. It is important to remember that shell commands are only valid for the current shell session, and if the shell session is closed, the shell variables will need to be re-defined.
If you want variables to persist for multiple sessions, then set them explicitly in your shell .profile, as you did for the Go environment variables.
To clear a variable binding, use unset $VARIABLE_NAME
. Shell variables should be named with ALL CAPS.
Setting Up the Node
These instructions will direct you on how to initialize your node, synchronize to the network and upgrade your node to a validator.
Initialize the chain
Please replace YOUR_MONIKER
with your own moniker.
This will generate the following files in ~/.archway/config/
genesis.json
node_key.json
priv_validator_key.json
Download the genesis file
This will replace the genesis file created using archway init
command with the mainnet genesis.json
.
Set Seeds
Set Persistent Peers
We can add these persistent_peers
to our config.toml
:
Set minimum gas price
Create (or restore) a local key pair
Either create a new key pair or restore an existing wallet for your validator:
After creating a new key, the key information and seed phrase will be shown. It is essential to write this seed phrase down and keep it in a safe place. The seed phrase is the only way to restore your keys.
Setup cosmovisor
Follow the Setup Cosmovisor instructions to setup cosmovisor and start the node.
Upgrade to a validator
Do not attempt to upgrade your node to a validator until the node is fully in sync as per the previous step.
To upgrade the node to a validator, you will need to submit a create-validator
transaction:
The above transaction is just an example. There are many more flags that can be set to customize your validator, such as your validator website, or keybase.io id, etc. To see a full list:
Backup critical files
There are certain files that you need to back up to be able to restore your validator if, for some reason, it damaged or lost in some way. Please make a secure backup of the following files located in ~/.archway/config/
:
priv_validator_key.json
node_key.json
It is recommended that you encrypt and backup of these files.
Last updated