Cheat Sheet
Wallet
Add New Wallet Key
republicd keys add wallet
Recover existing key
republicd keys add wallet --recover
List All Keys
republicd keys list
Query Wallet Balance
republicd q bank balances $(republicd keys show wallet -a)
Check sync status
republicd status 2>&1 | jq .sync_info.catching_up
Create Validator
Change your info "your_info"
republicd tx staking create-validator <(cat <<EOF
{
"pubkey": $(republicd tendermint show-validator),
"amount": "1000000000000000000arai",
"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 raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Edit Existing Validator
republicd tx staking edit-validator \
--new-moniker="" \
--identity="" \
--website="" \
--details="" \
--from wallet \
--chain-id raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Delegate Token to your own validator
republicd tx staking delegate $(republicd keys show wallet --bech val -a) 1000000000000000000arai \
--from wallet \
--chain-id raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Withdraw All
republicd tx distribution withdraw-all-rewards --from wallet \
--from wallet \
--chain-id raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Withdraw Rewards with Comission
republicd tx distribution withdraw-rewards $(republicd keys show wallet --bech val -a) \
--from wallet \
--chain-id raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Unjail validator
republicd tx slashing unjail \
--from wallet \
--chain-id raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Vote
republicd tx gov vote 1 yes \
--from wallet \
--chain-id raitestnet_77701-1 \
--gas-prices=2500000000arai \
--gas-adjustment=1.5 \
--gas=auto
-y
Services Management
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable republicd
# Disable Service
sudo systemctl disable republicd
# Start Service
sudo systemctl start republicd
# Stop Service
sudo systemctl stop republicd
# Restart Service
sudo systemctl restart republicd
# Check Service Status
sudo systemctl status republicd
# Check Service Logs
sudo journalctl -u republicd -f --no-hostname -o cat
Backup Validator
cat $HOME/.republic/config/priv_validator_key.json
Remove node
cd $HOME && sudo systemctl stop republicd
sudo systemctl disable republicd
sudo rm /etc/systemd/system/republicd.service
sudo systemctl daemon-reload
rm -f $(which republicd)
rm -rf .republic
rm -rf republic