Junod Installation and setup
Instruction to install the junod binary

Choose an Operating System

The operating system you use for your node is entirely your personal preference. You will be able to compile the junod daemon on most modern linux distributions and recent versions of macOS.
For the tutorial, it is assumed that you are using an Ubuntu LTS release.
If you have chosen a different operating system, you will need to modify your commands to suit your operating system.

Install pre-requisites

1
# update the local package list and install any available upgrades
2
sudo apt-get update && sudo apt upgrade -y
3
4
# install toolchain and ensure accurate time synchronization
5
sudo apt-get install make build-essential gcc git jq chrony -y
Copied!

Install Go

Follow the instructions here to install Go.
For an Ubuntu LTS, you can probably use:
1
wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
2
sudo tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz
Copied!
Please install Go v1.17 or later.
Unless you want to configure in a non standard way, then set these in the .profile in the user's home (i.e. ~/) folder.
1
export GOROOT=/usr/local/go
2
export GOPATH=$HOME/go
3
export GO111MODULE=on
4
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Copied!
After updating your ~/.profile you will need to source it:
1
source ~/.profile
Copied!

Build Juno from source

1
git clone https://github.com/CosmosContracts/juno
2
cd juno
3
git fetch
4
git checkout <version-tag>
Copied!
The <version-tag> will need to be set to either a testnet chain-id or the latest mainnet version tag.
For genesis, the mainnet version tag will be v1.0.0 - i.e:
1
git checkout v1.0.0
Copied!
For current uni testnet, the version tag will be v2.0.0-alpha.3 i.e:
1
git checkout v2.0.0-alpha.3
Copied!
Once you're on the correct tag, you can build:
1
# in juno dir
2
make install
Copied!
To confirm that the installation has succeeded, you can run:
1
junod version
Copied!

Connecting to the network

To connect to the Juno network you can either run your own node or connect to a public node's RPC endpoint. To find a public node to connect to consider looking in the Juno Discord. Connecting to a public node requires the least configuration but you should be sure that you trust whatever node that you choose.
If you choose to run your own node see either Joining Mainet or Joining Testnets depending on what chain you would like to work on.
Last modified 12d ago