For the complete documentation index, see llms.txt. This page is also available as Markdown.

Running a node

Kopi is built using CosmosSDK v0.50. For this reason, Node Operators and Validators alike are required to run Golang version 1.24 and above. This guide is based on a server running Ubuntu 24.04 and will initiate a node on the Kopi Testnet or Mainnet.

Initial configuration

Set environment variables

NODE_NAME="my_node"
GO_VERSION=1.24.5
IP=$(curl -s -4 icanhazip.com)
export DAEMON_HOME="/root/.kopid"
export DAEMON_NAME="kopid"

Install requirements

rm -rf /usr/local/go
wget -q https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz
tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz >/dev/null
export PATH=$PATH:/usr/local/go/bin:/root/go/bin
apt-get -qq update >/dev/null
NEEDRESTART_MODE=a apt-get -qq install make gcc lz4 snapd -y

Install cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest
rm -rf ~/.kopid/cosmovisor
DAEMON_HOME="/root/.kopid/" DAEMON_NAME="kopid" cosmovisor init /root/go/bin/kopid

sed -i '/^timeout_propose =/c timeout_propose = "300ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^timeout_propose_delta =/c timeout_propose_delta = "50ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^timeout_prevote =/c timeout_prevote = "100ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^timeout_prevote_delta =/c timeout_prevote_delta = "50ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^timeout_precommit =/c timeout_precommit = "100ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^timeout_precommit_delta =/c timeout_precommit_delta = "50ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^timeout_commit =/c timeout_commit = "500ms"' ${HOME}/.kopid/config/config.toml
sed -i '/^minimum-gas-prices =/c minimum-gas-prices = "0ukopi"' ${HOME}/.kopid/config/app.toml

Configuring testnet

Cloning Kopi repository and installing it locally

Adjusting config files

Download snapshot

Configuring mainnet

Cloning Kopi repository and installing it locally

Adjusting config files

Download snapshot:

Installing system service

Create a file called cosmovisor.service with the below input:

You can now monitor your node by using the following command command:

The following command executes all the shown commands at once:

If you need to restart the Node for whatever reason you can run the following command:

To stop your Node, simply run:

Last updated