Namada  services

RPC   https://rpc-namada.theamsolutions.info

Grafana Validator`s Health dashboard   https://github.com
TMKMS remote signing guide   https://github.com

Official's docs   https://docs.namada.net/networks/testnets
Namada Dashboard   https://namada.me
Shielded Ranking board   https://namada.net/shielded-expedition

 
NODE SETUP


 

#install essentials
sudo apt update; sudo apt upgrade -y
sudo apt install make clang pkg-config libssl-dev build-essential git jq llvm libudev-dev -y

#install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 
source $HOME/.cargo/env

#install protocol buffers
sudo apt update
sudo apt install protobuf-compiler


#set variables
CHAIN_ID="shielded-expedition.88f17d1d14"
KEY_NAME="<YOUR KEY NAME>"
VAL_NAME="<YOUR VALIDATOR NAME>"
EMAIL="<YOUR EMAIL>"

#make variables permanent
echo 'export CHAIN_ID='\"${CHAIN_ID}\" >> $HOME/.bash_profile
echo 'export KEY_NAME='\"${KEY_NAME}\" >> $HOME/.bash_profile
echo 'export VAL_NAME='\"${VAL_NAME}\" >> $HOME/.bash_profile
echo 'export EMAIL='\"${EMAIL}\" >> $HOME/.bash_profile
source $HOME/.bash_profile

#check
cat ~/.bash_profile
 

#install pre-compiled Namada binaries - v0.31.4
wget https://github.com/anoma/namada/releases/download/v0.31.6/namada-v0.31.6-Linux-x86_64.tar.gz
tar xf namada-*.tar.gz
sudo mv namada-v0.31.6-Linux-x86_64/namada* /usr/local/bin/
rm -rf namada*

#or compile binaries yourself 
git clone https://github.com/anoma/namada.git
cd namada
git checkout v0.31.6
make install
sudo chmod +x ~/.cargo/bin/namada*
sudo mv ~/.cargo/bin/namada* /usr/local/bin
 

#install CometBft
mkdir cometbft
wget https://github.com/cometbft/cometbft/releases/download/v0.37.2/cometbft_0.37.2_linux_amd64.tar.gz
tar xvf cometbft_0.37.2_linux_amd64.tar.gz -C ./cometbft
chmod +x cometbft/cometbft
sudo mv cometbft/cometbft /usr/local/bin/
rm -rf cometbft*
 

#check version
namada -V

#initialize chain and working directory
namada client utils join-network --chain-id $CHAIN_ID
 

#add service file
sudo tee /etc/systemd/system/namadad.service << EOF
[Unit]
Description=Namada Node
After=network.target
[Service]
User=$USER
WorkingDirectory=$HOME/.local/share/namada
Type=simple
ExecStart=/usr/local/bin/namada --base-dir=$HOME/.local/share/namada node ledger run
Environment=NAMADA_CMT_STDOUT=true
Environment=TM_LOG_LEVEL=p2p:none,pex:error
RemainAfterExit=no
Restart=on-failure
RestartSec=10s
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

#add peers
peers="$(curl -s https://raw.githubusercontent.com/AlexToTheMoon/AM-Solutions/main/files/namada-peers.txt)"
sed -i "s#^persistent_peers *=.*#persistent_peers = \"$peers\"#;" $HOME/.local/share/namada/shielded-expedition.88f17d1d14/config.toml

#add seeds
seeds="tcp://9202be72cfe612af24b43f49f53096fc5512cd7f@194.163.172.168:26656,\
tcp://2cdf24141644ef9e50ab270e7cf61c661e105d90@seeds.cryptosj.net:12904,\
tcp://8e81eb6d4bc86066ebe0b11519333f635437733c@65.108.100.57:26656"
sed -i "s#^seeds *=.*#seeds = \"$seeds\"#;" $HOME/.local/share/namada/shielded-expedition.88f17d1d14/config.toml

#addrbook
wget -qO $HOME/.local/share/namada/shielded-expedition.88f17d1d14/cometbft/config/addrbook.json https://snapshots.theamsolutions.info/nam-addrbook.json

#enable Namada service
sudo systemctl enable namadad.service
sudo systemctl daemon-reload
sudo systemctl restart namadad.service

#check logs
sudo journalctl -u namadad.service -fn 50 -o cat

#full node status (if u don`t use standard port 26657, change to a right one)
curl localhost:26657/status

#sync status (false =  node synced)
curl -s localhost:26657/status | jq .result.sync_info.catching_up

 

DATA SNAPSHOT
(updating every 4 hours)

 
#check snapshot date/time : curl -s https://snapshots.theamsolutions.info/ | egrep -o ">namada-snap*.*tar" | tr -d ">"

#run node from snapshot
snap=$(curl -s https://snapshots.theamsolutions.info/ | egrep -o ">namada-snap*.*tar" | tr -d ">")
workd="$HOME/.local/share/namada/shielded-expedition.88f17d1d14"
wget -P $HOME https://snapshots.theamsolutions.info/${snap}
sudo systemctl stop namadad.service
cp ${workd}/cometbft/data/priv_validator_state.json ~/priv_validator_state.jsonNBAK
rm -rf ${workd}/db/ ${workd}/cometbft/data/ ${workd}/cometbft/data/ ${workd}/tx_wasm_cache ${workd}/vp_wasm_cache
tar xf ~/${snap} -C ${workd}; rm ~/${snap}
cp ~/priv_validator_state.jsonNBAK ${workd}/cometbft/data/priv_validator_state.json
sudo systemctl restart namadad.service

 

SETUP VALIDATOR
(Node must by synced)

 

#generate new key
namadaw gen --alias "${KEY_NAME}" 

#or recover key from mnemonic
namadaw derive --alias "${KEY_NAME}" 

#check key address
namadaw find --alias "${KEY_NAME}" 

#list all the keys
namadaw  list

#check balance
namadac balance --owner "${KEY_NAME}" --node http://localhost:26657

#find validator key
namadac find-validator --tm-address=$(curl -s localhost:26657/status | jq -r .result.validator_info.address) --node http://localhost:26657

#initialize validator 
namadac  init-validator \
 --alias "${VAL_NAME}" \
 --account-keys "${KEY_NAME}" \
 --signing-keys "${KEY_NAME}" \
 --commission-rate 0.1 \
 --max-commission-rate-change 0.1 \
 --email "${EMAIL}" \
--node http://localhost:26657

#bond tokens to your validator
namadac  bond \
 --source "${KEY_NAME}" \
 --validator "<Validator address tham1...>" \
 --amount 1000 \
--node http://localhost:26657

USEFUL 

 

#query TX
namadac tx-result --tx-hash <TX HASH> --node tcp://149.50.96.147:26657

#send funds
namada  transfer --target <RECEIVER-KEY(tnam1..)> --source <SENDER-KEY(NAME)> --amount 100 --token NAM --node http://localhost:26657

#check validator consensus status
namadac validator-state --validator "<Validator address tham1...>" --node http://localhost:26657

#unjail validator
namadac unjail-validator --validator  "<Validator address tham1...>" --node http://localhost:26657

#claim rewards
namadac claim-rewards --validator "<Validator address tnam1...>" --node http://localhost:26657

 
 

GOOD LUCK !

AM Solutions © Copyright. All rights reserved.

We need your consent to load the translations

We use a third-party service to translate the website content that may collect data about your activity. Please review the details in the privacy policy and accept the service to view the translations.