Installation Node
Hardware requirements
The following requirements are recommended:
- 8 or more physical CPU cores
- At least 400GB of SSD disk storage
- At least 8GB of memory (RAM)
- At least 100mbps network bandwidth
Install dependencies Required
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -yInstall go
We are gonna use GO Version 1.24.5 If you already have GO installed you can skip this
ver="1.24.5"
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
source ~/.bash_profile
go versionInstall binary
cd $HOME
rm -rf kiichain
git clone https://github.com/KiiChain/kiichain.git
cd kiichain
git checkout v6.1.1
make installVerify that you’ve installed successfully
kiichaind version --long | grep -e commit -e versionInitialize Node
Please change <MONIKER> To your own Moniker.
kiichaind init <MONIKER> --chain-id kiichain_1783-1Download Genesis file and addrbook
- Genesis
curl -L https://snapshot.vinjan-inc.com/kiichain/genesis.json > $HOME/.kiichain/config/genesis.json- Addrbook
curl -L https://snapshot.vinjan-inc.com/kiichain/addrbook.json > $HOME/.kiichain/config/addrbook.jsonCustom Port
PORT=199
sed -i -e "s%:26657%:${PORT}57%" $HOME/.kiichain/config/client.toml
sed -i -e "s%:26658%:${PORT}58%; s%:26657%:${PORT}57%; s%:6060%:${PORT}60%; s%:26656%:${PORT}56%; s%:26660%:${PORT}61%" $HOME/.kiichain/config/config.toml
sed -i -e "s%:1317%:${PORT}17%; s%:9090%:${PORT}90%" $HOME/.kiichain/config/app.tomlConfigure Gas & EVM id
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"333333333akii\"/" $HOME/.kiichain/config/app.toml
sed -i -e "/evm-chain-id =/ s/= .*/= 1783/" $HOME/.kiichain/config/app.tomlPrunning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = ""|' \
-e 's|^pruning-interval *=.*|pruning-interval = "20"|' \
$HOME/.kiichain/config/app.tomlIndexer Off
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.kiichain/config/config.tomlcreate service file and start node
Create service file Create a wardend.service file in the /etc/systemd/system folder with the following code. You can change USER with your Linux user name. You need sudo previlege to do this step.
sudo tee /etc/systemd/system/kiichaind.service > /dev/null <<EOF
[Unit]
Description=kiichain
After=network-online.target
[Service]
User=$USER
ExecStart=$(which kiichaind) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF- Enable Service and Start Node
sudo systemctl daemon-reload
sudo systemctl enable kiichaindSnapshot
Statesync
sudo systemctl restart kiichaind
sudo journalctl -u kiichaind -f -o catCreate Validator
Heads up to the Cheat Sheets to create validator