Validator Setup

Create/restore a key pair​

  • Create Wallet

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

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

Create Your Validator

PUBKEY=$(crossfid tendermint show-validator)

cat > $HOME/.crossfid/validatortx.txt << EOM
{
  "pubkey": $PUBKEY,
  "amount": "10000000000000mpx",
  "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:

crossfid tx staking create-validator $HOME/.crossfid/validatortx.txt \
  --from=<your-wallet-name> \
  --chain-id="crossfi-mainnet-1" \
  --gas="auto" \
  --gas-prices="0.2xfi" \
  --gas-adjustment=1.5 \
  --yes

Last updated