Manual node setup
If you want to setup Namada fullnode manually follow the steps below
Update and upgrade
Copy sudo apt update && sudo apt upgrade -y
Install GO
Copy if ! [ -x "$(command -v go)" ]; then
ver="1.20.3"
cd $HOME
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
fi
Install rust
Copy curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
Install protobuf
Copy sudo apt update
sudo apt install protobuf-compiler
Setting up vars
You should replace values in <>
<YOUR_MONIKER> Here you should put name of your moniker (validator) that will be visible in explorer
<YOUR_WALLET> Here you shoud put the name of your wallet
Copy NAMADA_WALLET="<YOUR_WALLET_NAME>"
NAMADA_NODENAME="<YOUR_MONIKER>"
NAMADA_CHAIN_ID="public-testnet-15.0dacadb8d663"
EMAIL="<YOUR EMAIL>"
Copy echo "
export NAMADA_WALLET=${NAMADA_WALLET}
export NAMADA_NODENAME=${NAMADA_NODENAME}
export NAMADA_CHAIN_ID=${NAMADA_CHAIN_ID}
export EMAIL=${EMAIL}
" >> $HOME/.bash_profile
source $HOME/.bash_profile
Install binaries
Copy git clone https://github.com/anoma/namada.git
cd namada
git checkout v0.28.2
make install
sudo chmod +x ~/.cargo/bin/namada*
sudo mv ~/.cargo/bin/namada* /usr/local/bin
Install CometBft
Copy cd $HOME; 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*
Initialize your Node
Copy namada client utils join-network --chain-id $NAMADA_CHAIN_ID
Create Service
Copy 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
Enable your Node
Copy sudo systemctl enable namadad.service
sudo systemctl daemon-reload
Starting a validator
1. Add a new key
Copy namadaw key gen --alias "${NAMADA_WALLET}"
(OR)
1. Recover your key
Copy namadaw key derive --alias "${NAMADA_WALLET}"
2. Create validator
Wait until the node is synchronized.
Copy namadac init-validator \
--alias "${NAMADA_NODENAME}" \
--account-keys "${NAMADA_WALLET}" \
--signing-keys "${NAMADA_WALLET}" \
--commission-rate 0.5 \
--max-commission-rate-change 0.05 \
--email "${EMAIL}"
Stake more tokens to your validator
Copy namadac bond \
--source "${NAMADA_WALLET}" \
--validator "${NAMADA_NODENAME}" \
--amount 900
Last updated 9 months ago