Skip to main content

Command

Wallet:

Add New Wallet:

bitbadgeschaind keys add wallet

Restore executing wallet:

bitbadgeschaind keys add wallet --recover

List All Wallets:

bitbadgeschaind keys list

Delete wallet:

bitbadgeschaind keys delete wallet

Check Balance:

bitbadgeschaind q bank balances $(bitbadgeschaind keys show wallet -a)

Validator:

Create Validator:

bitbadgeschaind tx staking create-validator <(cat <<EOF
{
"pubkey": $(bitbadgeschaind tendermint show-validator),
"amount": "1000000000ubadge",
"moniker": "Node39-Guide",
"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

Check sync | False -> done.

bitbadgeschaind status 2>&1 | jq .SyncInfo.catching_up

Delegate:

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" \ \
--node=https://bitbadges-rpc.node39.top:443 \
-y

Withdraw rewards and commission:

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" \ \
--node=https://bitbadges-rpc.node39.top:443 \
-y

Unjail:

bitbadgeschaind tx slashing unjail \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \ \
--node=https://bitbadges-rpc.node39.top:443 \
-y

Unbond:

bitbadgeschaind tx staking unbond $(bitbadgeschaind keys show wallet --bech val -a) 1000000000ubadge \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \ \
--node=https://bitbadges-rpc.node39.top:443 \
-y

Vote:

bitbadgeschaind tx gov vote proposal_id yes \
--from wallet \
--chain-id=bitbadges-1 \
--gas="auto" \
--gas-adjustment="1.2" \
--gas-prices="0.025ubadge" \
--node=https://bitbadges-rpc.node39.top:443 \
-y

System:

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 -fo cat