Skip to main content

Setup your node

Install pre requis

sudo apt-get update && sudo apt upgrade -y 
sudo apt-get install make build-essential gcc git jq chrony -y

Install go

sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz

Setting up go

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

Install Node

Install the Kyve-node binary by running the following commands

#from $HOME dir 
git clone https://github.com/KYVENetwork/chain
cd chain
git fetch
git checkout v1.0.0
make build
make install

To confirm that the node is well installed

kyved version

#v1.0.0

Setting up the Node

Initialization node

Please choose your MONIKER name, it will represent your node

kyved init MONIKER_NAME --chain-id kyve-1

This will generate severals files in ~/.kyve/config/

  • node_key.json
  • genesis.json
  • priv_validator_key.json

Download and replace the genesis file

rm ~/.kyve/config/genesis.json 
wget -O genesis.json https://raw.githubusercontent.com/KYVENetwork/networks/main/kyve-1/genesis.json --inet4-only
mv genesis.json ~/.kyve/config

Node connexion

In order to connect the node you can either use seeds, lives peers or address book.

Set Seeds


Setup service file

[Unit]
Description="kyve node"


[Service]
User=USER
ExecStart=$(which kyved) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target

If you'd like to synchronise a node from a snapshot check the snapshot part

Start service file

systemctl daemon-reload
systemctl start kyve.service | journalctl -u kyve.service -f