π Installation
Set up dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget htop tmux build-essential jq make lz4 gcc unzip -y
Go installation
cd $HOME
GOVER="1.21.6"
wget -q --show-progress "https://golang.org/dl/go$GOVER.linux-amd64.tar.gz"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$GOVER.linux-amd64.tar.gz"
rm "go$GOVER.linux-amd64.tar.gz"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> ~/.bash_profile
source ~/.bash_profile
[ ! -d "$HOME/go/bin" ] && mkdir -p "$HOME/go/bin"
go version
Configuration
git clone https://github.com/Titannet-dao/titan-chain.git
cd titan-chain
go build ./cmd/titand
cp titand /usr/local/bin
Initialize Titan Validator
titand init Moniker-Name --chain-id titan-test-3
Custom Name Setting
nano ~/.titan/config/config.toml
moniker = ""edit the line
Configuring Genesis Files
wget https://raw.githubusercontent.com/Titannet-dao/titan-chain/main/genesis/genesis.json
mv genesis.json ~/.titan/config/genesis.json
config.toml
Open the Seeds and Peers file seeds
and persistent_peers
edit its fields:
nano ~/.titan/config/config.toml
seeds = "[email protected]:26656"
Configuring Gas Prices and Charges
nano ~/.titan/config/app.toml
minimum-gas-prices = "0.0025uttnt"
Creating Systemd Service File
sudo nano /etc/systemd/system/titan.service
[Unit]
Description=Titan Daemon
After=network-online.target
[Service]
User=root
ExecStart=/usr/local/bin/titand start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
Enable and Start the Service
sudo systemctl enable titan.service
sudo systemctl start titan.service
Status Check
sudo systemctl status titan.service
Check logs
journalctl -fu allorad -o cat
Create your account
titand keys add <name>
Create validator config file
nano ~/validator.json
{
"pubkey": "<pubkey>",
"amount": "<amount>uttnt",
"moniker": "<moniker>",
"commission-rate": "0.07",
"commission-max-rate": "1.0",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1",
"identity": "<identity>",
"website": "<website>",
"security": "<security>",
"details": "<details>"
}
titand tx staking create-validator ~/validator.json --from <account> --fees 500uttnt --ip <ip>
Last updated