Validator Setup

Create/restore a key pair​

  • Create Wallet

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

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

Create Your Validator

PUBKEY=$(zigchaind tendermint show-validator)

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

To create your validator use the following command:

zigchaind tx staking create-validator $HOME/.zigchain/validatortx.txt \
  --from=<your-wallet-name> \
  --chain-id="zig-test-2" \
  --gas="auto" \
  --gas-prices="0.00025uzig" \
  --gas-adjustment=1.5 \
  --yes

If you don't have any testnet tokens yet, you can request some from the ZigChain Faucet

Last updated