πŸ”Œ Installation

πŸ’» Hardware Requirements

ComponentsMinimum Requirements
CPU4
RAM8+ GB
STORAGE+200 GB SSD

1️⃣ Installation packages and 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
VER="1.23.0"
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"
[ ! -f ~/.bash_profile ] && touch ~/.bash_profile
echo "export PATH=$PATH:/usr/local/go/bin:~/go/bin" >> ~/.bash_profile
source $HOME/.bash_profile
[ ! -d ~/go/bin ] && mkdir -p ~/go/bin

2️⃣ Install node

cd
wget -P ~/. https://github.com/Titannet-dao/titan-chain/releases/download/v0.3.0/titand_0.3.0-1_g167b7fd6.tar.gz
tar -zxvf ~/titand_0.3.0-1_g167b7fd6.tar.gz  --strip-components=1
mkdir -p /root/.titan/cosmovisor/genesis/bin
mv /root/titand /root/.titan/cosmovisor/genesis/bin/
sudo ln -s $HOME/.titan/cosmovisor/genesis $HOME/.titan/cosmovisor/current -f
sudo ln -s $HOME/.titan/cosmovisor/current/bin/titand /usr/local/bin/titand -f
go install cosmossdk.io/tools/cosmovisor/cmd/[email protected]
cd
mkdir -p /root/.titan/lib
wget "https://github.com/Titannet-dao/titan-chain/releases/download/v0.3.0/libwasmvm.x86_64.so" -O "/root/.titan/lib/libwasmvm.x86_64.so"
echo "alias titand='LD_LIBRARY_PATH=/root/.titan/lib:\$LD_LIBRARY_PATH /usr/local/bin/titand'" >> ~/.bashrc
source ~/.bashrc

➑️ Create a service

sudo tee /etc/systemd/system/titan.service > /dev/null << EOF
[Unit]
Description=Titan Node Service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
Environment="DAEMON_HOME=${HOME}/.titan"
Environment="DAEMON_NAME=titand"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:$HOME/.titan/cosmovisor/current/bin"
Environment="LD_LIBRARY_PATH=/root/.titan/lib:$LD_LIBRARY_PATH"

[Install]
WantedBy=multi-user.target
EOF

➑️ Let’s activate it

sudo systemctl daemon-reload
sudo systemctl enable titan

➑️ Initialize the node

titand init MONIKERNAME --chain-id titan-test-4

You can replace 29 with anything you want.

echo "export T_PORT="29"" >> $HOME/.bash_profile
source $HOME/.bash_profile
sed -i -e '/^chain-id = /c\chain-id = "titan-test-4"' $HOME/.titan/config/client.toml
sed -i -e "s|^node *=.*|node = \"tcp://localhost:${T_PORT}657\"|" $HOME/.titan/config/client.toml

➑️ Genesis addrbook

cd
curl -L https://raw.githubusercontent.com/MictoNode/titan-cosmos/refs/heads/main/addrbook.json > $HOME/.titan/config/addrbook.json
rm ~/genesis.json
wget -P ~/. https://github.com/Titannet-dao/titan-chain/releases/download/v0.3.0/genesis.json
mv ~/genesis.json ~/.titan/config/genesis.json

➑️ Port

sed -i.bak -e "s%:1317%:${T_PORT}317%g;
s%:8080%:${T_PORT}080%g;
s%:9090%:${T_PORT}090%g;
s%:9091%:${T_PORT}091%g;
s%:8545%:${T_PORT}545%g;
s%:8546%:${T_PORT}546%g;
s%:6065%:${T_PORT}065%g" $HOME/.titan/config/app.toml
sed -i.bak -e "s%:26658%:${T_PORT}658%g;
s%:26657%:${T_PORT}657%g;
s%:6060%:${T_PORT}060%g;
s%:26656%:${T_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${T_PORT}656\"%;
s%:26660%:${T_PORT}660%g" $HOME/.titan/config/config.toml

➑️ Peers and Seeds

peers="[email protected]:29656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:29656,[email protected]:26656,[email protected]:35656,[email protected]:35656,[email protected]:29656,[email protected]:35656,[email protected]:26656,[email protected]:26656,[email protected]:53456,[email protected]:53456,[email protected]:28956,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:35656,[email protected]:35656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:29656,[email protected]:35656,[email protected]:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.titan/config/config.toml
seeds="[email protected]:26656"
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.titan/config/config.toml

➑️ Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.titan/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.titan/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.titan/config/app.toml

➑️ Gas Settings

sed -i 's|minimum-gas-prices =.*|minimum-gas-prices = "0.0025uttnt"|g' $HOME/.titan/config/app.toml

➑️ Indexer

sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.titan/config/config.toml

➑️ Snap (soon)

SOON

➑️ Let’s get started

sudo systemctl daemon-reload && sudo systemctl restart titan && sudo journalctl -u titan -f --no-hostname -o cat

➑️ Log Command

journalctl -u titan -f -o cat

➑️ Create wallet

titand keys add wallet-name

➑️ Import wallet

titand keys add wallet-name --recover

➑️ Faucet

Faucet/Discord

➑️ Create Validator

cd $HOME
titand tx staking create-validator \
--amount=1000000uttnt \
--pubkey=$(titand tendermint show-validator) \
--chain-id=titan-test-4 \
--min-self-delegation 1 \
--commission-max-change-rate=0.01 \
--commission-max-rate=1.0 \
--commission-rate=0.07 \
--moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--min-self-delegation=1
--from "wallet-name" \
--node http://localhost:(whatever you typed in custom_port)657 \
--fees 500uttnt \
-y

➑️ Edit Validator

titand tx staking edit-validator \
--chain-id titan-test-4 \
--commission-rate 1.0 \
--new-moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--from "wallet-name" \
--node http://localhost:(whatever you typed in custom_port)657 \
--fees 500uttnt \
-y

➑️ Delegation

titand tx staking delegate $(titand keys show wallet-name --bech val -a) amount000000uttnt --from wallet-name --chain-id titan-test-4 --fees 500uttnt --node http://localhost:(whatever you typed in custom_port)657 -y

➑️ Complete deletion

cd $HOME
sudo systemctl stop titan
sudo systemctl disable titan
sudo rm -rf /etc/systemd/system/titan.service
sudo systemctl daemon-reload
sudo rm -f /usr/local/bin/titand
sudo rm -f $(which titand)
sudo rm -rf $HOME/.titan
sed -i "/T_PORT_/d" $HOME/.bash_profile

➑️ Block check

local_height=$(curl -s localhost:(whatever you typed in custom_port)657/status | jq -r .result.sync_info.latest_block_height); network_height=$(curl -s https://titan-testnet-rpc.mictonode.com/status | jq -r .result.sync_info.latest_block_height); blocks_left=$((network_height - local_height)); echo "Your node height: $local_height"; echo "Network height: $network_height"; echo "Blocks left: $blocks_left"
  • Your node height - the current block of your node
  • Network height - the last block of the network
  • Blocks left - how many blocks your node has left to sync.