Chain ID: bbn-1
| Node Version: v2.2.0
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export BABYLON_CHAIN_ID="bbn-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
babylond keys add wallet
Recovery Wallet
babylond keys add wallet --recover
List All Wallet
babylond keys list
Delete Wallet
babylond keys delete wallet
Check Wallet Balance
babylond q bank balances $(babylond keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Create Validator
babylond tx staking create-validator \
--amount=1000000ubbn \
--pubkey=$(babylond tendermint show-validator) \
--moniker=$MONIKER \
--identity="YOUR_KEYBASE_ID" \
--details="YOUR_DETAILS" \
--website="YOUR_WEBSITE_URL" \
--chain-id=$BABYLON_CHAIN_ID \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1000 \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=0.002ubbn
Edit Validator
babylond tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$BABYLON_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=0.002ubbn
Check Jailed Reason
babylond query slashing signing-info $(babylond tendermint show-validator)
Unjail Validator
babylond tx slashing unjail --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Token
Withdraw Rewards
babylond tx distribution withdraw-all-rewards --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Withdraw Rewards with Comission
babylond tx distribution withdraw-rewards $(babylond keys show wallet --bech val -a) --commission --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Delegate Tokens to Your Validator
babylond tx staking delegate $(babylond keys show wallet --bech val -a) 100000ubbn --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Redelegate Tokens to Another Validator
babylond tx staking redelegate $(babylond keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 100000ubbn --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Unbond Tokens from Your Validator
babylond tx staking unbond $(babylond keys show wallet --bech val -a) 100000ubbn --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Send Tokens to Any Wallet
babylond tx bank send wallet <TO_WALLET_ADDRESS> 100000ubbn --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable babylond
Disable Service
sudo systemctl disable babylond
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
Check Service Logs
sudo journalctl -u babylond -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
babylond tx gov vote 1 yes --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
List all Proposals
babylond query gov proposals
Check Vote
babylond tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $BABYLON_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 0.002ubbn -y
Create new Proposal
babylond tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000ubbn \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=0.002ubbn \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.babylond/config/config.toml
Get Validator Info
babylond status 2>&1 | jq .ValidatorInfo
Get Denom Info
babylond q bank denom-metadata -oj | jq
Get Sync Status
babylond status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
babylond status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(babylond tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.babylond/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.002ubbn\"/" $HOME/.babylond/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.babylond/config/config.toml
Reset Chain Data
babylond tendermint unsafe-reset-all --home $HOME/.babylond --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop babylond && sudo systemctl disable babylond && sudo rm /etc/systemd/system/babylond.service && sudo systemctl daemon-reload && sudo rm -rf $(which babylond) && rm -rf $HOME/.babylond