Service operations ⚙️
Check logs
sudo journalctl -u babylond -fo cat
Start service
sudo systemctl start babylond
Stop service
sudo systemctl stop babylond
Restart service
sudo systemctl restart babylond
Check service status
sudo systemctl status babylond
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable babylond
Disable Service
sudo systemctl disable babylond
Node info
babylond status 2>&1 | jq
Your node peer
echo $(babylond tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.babylond/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
babylond keys add $WALLET
Restore executing wallet
babylond keys add $WALLET --recover
List All Wallets
babylond keys list
Delete wallet
babylond keys delete $WALLET
Check Balance
babylond q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
babylond keys export $WALLET
View EVM Prived Key
babylond keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
babylond keys import $WALLET wallet.backup
Tokens
To valoper address
To wallet address
Amount, ubbn
Withdraw all rewards
babylond tx distribution withdraw-all-rewards --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5
Withdraw rewards and commission from your validator
babylond tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y
Check your balance
babylond query bank balances $WALLET_ADDRESS
Delegate to Yourself
babylond tx staking delegate $(babylond keys show $WALLET --bech val -a) 1000000ubbn --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y
Delegate
babylond tx staking delegate <TO_VALOPER_ADDRESS> 1000000ubbn --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
babylond tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000ubbn --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y
Unbond
babylond tx staking unbond $(babylond keys show $WALLET --bech val -a) 1000000ubbn --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y
Transfer Funds
babylond tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000ubbn --gas auto --gas-adjustment 1.5 -y
Validator operations
Moniker
Identity
Details
Amount, ubbn
Commission rate
Commission max rate
Commission max change rate
Create New Validator
babylond tx staking create-validator \
--amount 1000000ubbn \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(babylond tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id bbn-test-5 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Existing Validator
babylond tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id bbn-test-5 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
babylond status 2>&1 | jq
Validator Details
babylond q staking validator $(babylond keys show $WALLET --bech val -a)
Jailing info
babylond q slashing signing-info $(babylond tendermint show-validator)
Slashing parameters
babylond q slashing params
Unjail validator
babylond tx slashing unjail --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y
Active Validators List
babylond q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
[[ $(babylond q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(babylond status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
babylond q slashing signing-info $(babylond tendermint show-validator)
Governance
Title
Description
Deposit, ubbn
Create New Text Proposal
babylond tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000ubbn \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
babylond query gov proposals
Proposal ID
Proposal option
View proposal
babylond query gov proposal 1
Vote
babylond tx gov vote 1 yes --from $WALLET --chain-id bbn-test-5 --gas auto --gas-adjustment 1.5 -y