Bitcanna Node Installation Guide

Chain ID: bitcanna-1

Install Go and Cosmovisor

Feel free to skip this step if you already have Go and Cosmovisor.

Install Go

We will use Go v1.21.1 as example here. The code below also cleanly removes any previous Go installation.

sudo rm -rvf /usr/local/go/
sudo tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
rm go1.21.1.linux-amd64.tar.gz

Configure Go

Unless you want to configure in a non-standard way, then set these in the ~/.profile file.

export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin

Install Cosmovisor

We will use Cosmovisor v1.0.0 as example here.

go install

Install Node

Install the current version of node binary.

git clone bitcanna
cd bitcanna
git checkout v2.0.3
make install

Configure Node

Initialize Node

Please replace YOUR_MONIKER with your own moniker.

bcnad init YOUR_MONIKER --chain-id bitcanna-1

Download Genesis

The genesis file link below is Polkachu's mirror download. The best practice is to find the official genesis download link.

wget -O genesis.json --inet4-only
mv genesis.json ~/.bcna/config

Configure Seed

Using a seed node to bootstrap is the best practice in our view.

sed -i 's/seeds = ""/seeds = ""/' ~/.bcna/config/config.toml

Launch Node

Configure Cosmovisor Folder

Create Cosmovisor folders and load the node binary.

# Create Cosmovisor Folders
mkdir -p ~/.bcna/cosmovisor/genesis/bin
mkdir -p ~/.bcna/cosmovisor/upgrades

# Load Node Binary into Cosmovisor Folder
cp ~/go/bin/bcnad ~/.bcna/cosmovisor/genesis/bin

Create Service File

Create a bitcanna.service file in the /etc/systemd/system folder with the following code snippet. Make sure to replace USER with your Linux user name. You need sudo previlege to do this step.

Description="bitcanna node"

ExecStart=/home/USER/go/bin/cosmovisor start


Start Node Service

# Enable service
sudo systemctl enable bitcanna.service

# Start service
sudo service bitcanna start

# Check logs
sudo journalctl -fu bitcanna

Last updated