Join our telegram Visit our website
Deploy your VPS using our referral link to get 20€ bonus
Deploy your VPS using our referral link to get 100$ free bonus for 60 days
Deploy your VPS using our referral link to get 100$ free bonus
Here you have to put name of your moniker (validator) that will be visible in explorer
NODENAME=<YOUR_MONIKER_NAME_GOES_HERE>
Save and import variables into system
echo "export NODENAME=$NODENAME" >> $HOME/.bash_profile
echo "export WALLET=wallet" >> $HOME/.bash_profile
echo "export CHAIN_ID=mars-1" >> $HOME/.bash_profile
source $HOME/.bash_profile
sudo apt update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
ver="1.18.2"
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
cd $HOME
git clone https://github.com/mars-protocol/hub.git
cd hub
git checkout v1.0.0
make install
marsd config chain-id $CHAIN_ID
marsd config keyring-backend test
marsd init $NODENAME --chain-id $CHAIN_ID
Option 1 - generate new wallet
marsd keys add $WALLET
Option 2 - recover existing wallet
marsd keys add $WALLET --recover
WALLET_ADDRESS=$(marsd keys show $WALLET -a)
marsd genesis add-account $WALLET_ADDRESS 1000000umars
marsd genesis gentx $WALLET 1000000umars \
--chain-id $CHAIN_ID \
--moniker=$NODENAME \
--commission-max-change-rate=0.01 \
--commission-max-rate=1.0 \
--commission-rate=0.05 \
--identity="" \
--website="" \
--details="" \
--min-self-delegation=1
24 word mnemonic
of your generated wallet- contents of
$HOME/.mars/config/*
- Copy the contents of ${HOME}/.mars/config/gentx/gentx-XXXXXXXX.json.
- Fork https://github.com/mars-protocol/networks
- Create a file
gentx-<VALIDATOR_NAME>.json
under themars-1/gentxs
folder in the forked repo, paste the copied text into the file. - Create a Pull Request to the main branch of the repository