Install the required dependencies, including Go. Remove any previous versions and install the new version:
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go$ver.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
Download the junctiond
binary, make it executable, and move it to /usr/local/bin
:
wget <https://github.com/airchains-network/junction/releases/download/v0.1.0/junctiond>
chmod +x junctiond
sudo mv junctiond /usr/local/bin
Configure the node:
junctiond config chain-id junction
junctiond init "Moniker" --chain-id junction
Download the genesis.json
and addrbook.json
files for your node:
wget -O $HOME/.junction/config/genesis.json <https://raw.githubusercontent.com/airchains-network/props/main/Airchains/genesis.json>
wget -O $HOME/.junction/config/addrbook.json <https://raw.githubusercontent.com/airchains-network/props/main/Airchains/addrbook.json>
Create a systemd service file for automatic node startup:
sudo tee /etc/systemd/system/junctiond.service > /dev/null <<EOF
[Unit]
Description=Airchain Validator Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which junctiond) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable junctiond
sudo systemctl start junctiond
Check the logs to verify the status:
sudo journalctl -u junctiond -f --no-hostname -o cat
Get your validator's public key:
junctiond comet show-validator
Create a JSON file for your validator: Fill the file with your public key and other details:
nano $HOME/validator.json
{
"pubkey": "<validator-pub-key>",
"amount": "1000000amf",
"moniker": "<validator-name>",
"identity": "<optional-identity>",
"website": "<optional-website>",
"security": "<optional-security>",
"details": "<optional-details>",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
Create the validator using the following command:
junctiond tx staking create-validator $HOME/validator.json --from <wallet-name> --chain-id junction --fees 5000amf