Mainnet
BeeZee
- Chain ID
- Version
- Go
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
bzed keys add $WALLETRecover a key
bzed keys add $WALLET --recoverList keys
bzed keys listWallet balance
bzed q bank balances $(bzed keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(bzed comet show-validator), "amount": "1000000ubze", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF bzed tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yEdit the validator
bzed tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yUnjail
bzed tx slashing unjail --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yValidator details
bzed q staking validator $(bzed keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
bzed tx distribution withdraw-all-rewards --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yWithdraw commission and rewards
bzed tx distribution withdraw-rewards $(bzed keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yDelegate to yourself
bzed tx staking delegate $(bzed keys show $WALLET --bech val -a) 1000000ubze --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yRedelegate
bzed tx staking redelegate $(bzed keys show $WALLET --bech val -a) <TO_VALOPER> 1000000ubze --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -yUnbond
bzed tx staking unbond $(bzed keys show $WALLET --bech val -a) 1000000ubze --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -ySend tokens
bzed tx bank send $WALLET <TO_ADDRESS> 1000000ubze --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -y
Governance
List proposals
bzed q gov proposalsView a proposal
bzed q gov proposal <ID>Vote
bzed tx gov vote <ID> yes --from $WALLET --chain-id $BZE_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.01ubze -y # yes | no | abstain | no_with_veto
Maintenance
Node status
bzed status 2>&1 | jqNode peer address
echo $(bzed comet show-node-id)@$(wget -qO- eth0.me):$BZE_PORT656Live peers
curl -s localhost:$BZE_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(bzed q staking validator $(bzed keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(bzed comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
bzed comet unsafe-reset-all --keep-addr-book --home $HOME/.bzeRemove the node
sudo systemctl stop bzed sudo systemctl disable bzed sudo rm /etc/systemd/system/bzed.service sudo systemctl daemon-reload rm -rf $HOME/.bze $(which bzed)
Service
Service status
sudo systemctl status bzedFollow logs
sudo journalctl -fu bzed -o catRestart
sudo systemctl restart bzedStop
sudo systemctl stop bzed