π Installation
π» Hardware Requirements
Components | Minimum Requirements |
---|---|
CPU | 4 |
RAM | 8+ 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
Warning
donβt forget to backup the wallet words!
titand keys add wallet-name
β‘οΈ Import wallet
titand keys add wallet-name --recover
β‘οΈ Faucet
β‘οΈ Create Validator
Reminder
You canβt create a validator without Sync. You must have to catch the latest block.
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.
On This Page
- π» Hardware Requirements
- 1οΈβ£ Installation packages and dependencies
- β‘οΈ Go Installation
- 2οΈβ£ Install node
- β‘οΈ Create a service
- β‘οΈ Letβs activate it
- β‘οΈ Initialize the node
- β‘οΈ Genesis addrbook
- β‘οΈ Port
- β‘οΈ Peers and Seeds
- β‘οΈ Pruning
- β‘οΈ Gas Settings
- β‘οΈ Indexer
- β‘οΈ Snap (soon)
- β‘οΈ Letβs get started
- β‘οΈ Log Command
- β‘οΈ Create wallet
- β‘οΈ Import wallet
- β‘οΈ Faucet
- β‘οΈ Create Validator
- β‘οΈ Edit Validator
- β‘οΈ Delegation
- β‘οΈ Complete deletion
- β‘οΈ Block check