Validator Setup

Create/restore a key pair​

  • Create Wallet

medasdigitald keys add <your-wallet-name>
  • Restore Wallet

medasdigitald keys add <your-wallet-name> --recover

Create Your Validator

PUBKEY=$(medasdigitald tendermint show-validator)

cat > $HOME/.medasdigital/validatortx.txt << EOM
{
  "pubkey": $PUBKEY,
  "amount": "1000000umedas",
  "moniker": "",
  "identity": "", 
  "website": "",
  "security": "",
  "details": "",
  "commission-rate": "0.1",
  "commission-max-rate": "0.2",
  "commission-max-change-rate": "0.01",
  "min-self-delegation": "1"
}
EOM

To create your validator use the following command:

medasdigitald tx staking create-validator $HOME/.medasdigital/validatortx.txt \
  --from=<your-wallet-name> \
  --chain-id="medasdigital-2" \
  --gas="auto" \
  --gas-prices="0.1umedas" \
  --gas-adjustment=1.5 \
  --yes

Last updated