Cheat Sheet
Wallet
Add New Wallet Key
bitbadgeschaind keys add wallet
Recover existing key
bitbadgeschaind keys add wallet --recover
List All Keys
bitbadgeschaind keys list
Query Wallet Balance
bitbadgeschaind q bank balances $(bitbadgeschaind keys show wallet -a)
Check sync status
bitbadgeschaind status 2>&1 | jq .sync_info.catching_up
Create Validator
Change your info "your_info"
bitbadgeschaind tx staking create-validator <(cat <<EOF
{
"pubkey": $(bitbadgeschaind tendermint show-validator),
"amount": "1000000000ubadge",
"moniker": "Your_moniker",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security-contact": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--from wallet \
--chain-id bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \
-y
Edit Existing Validator
bitbadgeschaind tx staking edit-validator \
--new-moniker="" \
--identity="" \
--website="" \
--details="" \
--from wallet --chain-id=bitbadges-1 --fees 5000ubadge -y
Delegate Token to your own validator
bitbadgeschaind tx staking delegate $(bitbadgeschaind keys show wallet --bech val -a) 1000000000ubadge \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \ \
-y
Withdraw All
bitbadgeschaind tx distribution withdraw-all-rewards --from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \ \
-y
Withdraw Rewards with Comission
bitbadgeschaind tx distribution withdraw-rewards $(bitbadgeschaind keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \
-y
Unjail validator
bitbadgeschaind tx slashing unjail \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \
-y
Vote
bitbadgeschaind tx gov vote 18 yes \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \
-y
Services Management
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable bitbadgeschaind
# Disable Service
sudo systemctl disable bitbadgeschaind
# Start Service
sudo systemctl start bitbadgeschaind
# Stop Service
sudo systemctl stop bitbadgeschaind
# Restart Service
sudo systemctl restart bitbadgeschaind
# Check Service Status
sudo systemctl status bitbadgeschaind
# Check Service Logs
sudo journalctl -u bitbadgeschaind -f --no-hostname -o cat
Backup Validator
cat $HOME/.bitbadgeschain/config/priv_validator_key.json
Remove node
cd $HOME && sudo systemctl stop bitbadgeschaind
sudo systemctl disable bitbadgeschaind
sudo rm /etc/systemd/system/bitbadgeschaind.service
sudo systemctl daemon-reload
rm -f $(which bitbadgeschaind)
rm -rf .bitbadgeschain
rm -rf bitbadgeschain