πŸ•ΉοΈCommand

Validator Setup

Create/restore a key pair​

  • Create Wallet

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

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

Create Your Validator

PUBKEY=$(bitbadgeschaind tendermint show-validator)

cat > $HOME/.bitbadgeschain/validatortx.txt << EOM
{
  "pubkey": $PUBKEY,
  "amount": "1000000000ubadge",
  "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:

bitbadgeschaind tx staking create-validator $HOME/.bitbadgeschain/validatortx.txt \
  --from=<your-wallet-name> \
  --chain-id="bitbadges-1" \
  --gas="auto" \
  --gas-prices="0.025ubadge" \
  --gas-adjustment=1.5 \
  --yes

Withdraw rewards and commission

bitbadgeschaind tx distribution withdraw-rewards bbvaloper1umps8fsm0s5g2s87y79m74szr8ayf8kcv53qmc --from Chicharito --commission --chain-id bitbadges-1 --gas auto --gas-adjustment 1.5 --gas-prices 21ubadge -y

Delegate to Yourself

bitbadgeschaind tx staking delegate $(bitbadgeschaind keys show Chicharito --bech val -a) 65000000000ubadge --from Chicharito --chain-id bitbadges-1 --gas auto --gas-adjustment 1.5 --gas-prices 21ubadge -y

Governance

Vote

bitbadgeschaind tx gov vote 19 yes \
  --from Chicharito \
  --chain-id bitbadges-1 \
  --gas auto \
  --gas-adjustment 2.0 \
  --gas-prices 21ubadge \
  -y

Last updated

Was this helpful?