Install onomyd
Last updated
Last updated
onomyd
is the command-line interface and daemon that connects to Onomy Protocol so that you can interact with the blockchain.
NOTE: If your ultimate goal is to operate a full node or validator node, then skip directly to the full node instructions for a one-command onomyd
installation, environment, and full node setup with seed nodes, snapshots, and more for Ubuntu machines.
The easiest method to install onomyd is to compile the binary locally using a provided script from the Onomy GitHub.
Download the bin.sh script locally with wget
Add the executable permission using chmod +x bin.sh
Run the script using bash bin.sh
This script downloads and compiles onomyd
. A new directory .onomy
will be created in your home directory. All the source code will be downloaded in the .onomy/src
directory. The compiled binary will be in .onomy/bin
directory.
Verify onomyd
installation with onomyd version
Create .onomy
directory tree
Install packages needed to build Onomy binary (Ubuntu example shown)
Install GO (ensure latest stable release version)
Setup environment variables, then ensure correct installation via go version
Optionally install Cosmovisor
Compile Onomy by ensuring to use the most up to date release in place of vX.X.X
Cosmovisor users: mv onomyd $HOME/.onomy/cosmovisor/genesis/bin
Otherwise: mv onomyd $HOME/.onomy/bin
Verify $ONOMY_HOME
Environment Variable
Ensure that the $ONOMY_HOME
environment variable is correctly set to point to your ~/.onomy
directory with echo $ONOMY_HOME
. If the output is not your ~/.onomy
path or is empty, you need to set it correctly. Add the following line to your ~/.bashrc
or ~/.profile
file to ensure it's set in every session: source ~/.bashrc
or source ~/.profile
Make the binaries executable
Add Onomy paths to PATH variable
Add to bashrc to make changes persistent
These variables are needed only for Cosmovisor
Verify onomyd
installation with onomyd version