Useful commands
List of commands used to manage the validator and node
Wallet interaction
Create Wallet
arkeod keys add <WALLET_NAME>
Restore wallet
arkeod keys add <WALLET_NAME> --recover
Show all wallets
Delete wallet
arkeod keys delete <WALLET_NAME>
Export wallet
arkeod keys export <WALLET_NAME>
Import wallet
arkeod keys import <WALLET_NAME> <WALLET_NAME>.backup
Show balance
arkeod q bank balances $(arkeod keys show <WALLET_NAME> -a)
Validator control
Create a validator
arkeod tx staking create-validator \
--amount=1000000uarkeo \
--pubkey=$(arkeod tendermint show-validator) \
--moniker="<YOUR_MONIKER>" \
--identity=<YOUR_KEYBASE_ID> \
--details="<YOUR_DETAILS>" \
--chain-id=arkeo \
--commission-rate=0.10 \
--commission-max-rate=0.20 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--from=<WALLET_NAME> \
--gas-prices=0.1uarkeo \
--gas-adjustment=1.5 \
--gas=auto -y
Edit validator
arkeod tx staking edit-validator \
--new-moniker="<YOUR_MONIKER>" \
--identity=<YOUR MONIKER> \
--details="<YOUR_DETAILS>" \
--chain-id=arkeo \
--commission-rate=0.1 \
--from=<WALLET_NAME> \
--gas-prices=0.1uarkeo \
--gas-adjustment=1.5 \
--gas=auto -y
Unjail
arkeod tx slashing unjail --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Jail reason
arkeod query slashing signing-info $(arkeod tendermint show-validator)
Active validators
arkeod q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Inactive validators
arkeod q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED") or .status=="BOND_STATUS_UNBONDING")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Information about the validator
arkeod q staking validator $(arkeod keys show <WALLET_NAME> --bech val -a)
Balance management
Withdrawal of all rewards
arkeod tx distribution withdraw-all-rewards --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Withdrawal of rewards and commissions
arkeod tx distribution withdraw-rewards $(arkeod keys show <WALLET_NAME> --bech val -a) --commission --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Self-delegation
arkeod tx staking delegate $(arkeod keys show <WALLET_NAME> --bech val -a) 1000000uarkeo --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Delegation to validator
arkeod tx staking delegate <TO_VALOPER_ADDRESS> 1000000uarkeo --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Redelegation to another validator
arkeod tx staking redelegate $(arkeod keys show <WALLET_NAME> --bech val -a) <TO_VALOPER_ADDRESS> 1000000uarkeo --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Unbond tokens
arkeod tx staking unbond $(arkeod keys show <WALLET_NAME> --bech val -a) 1000000uarkeo --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Sending tokens to a wallet
arkeod tx bank send <WALLET_NAME> <TO_WALLET_ADDRESS> 1000000uarkeo --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Governance
All proposals
arkeod query gov proposals
All proposals by ID
arkeod query gov proposal 1
Vote "YES"
arkeod tx gov vote 1 yes --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Vote "NO"
arkeod tx gov vote 1 no --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Vote "Abstain"
arkeod tx gov vote 1 abstain --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Vote "NoWithVeto"
arkeod tx gov vote 1 no_with_veto --from <WALLET_NAME> --chain-id arkeo --gas-prices 0.1uarkeo --gas-adjustment 1.5 --gas auto -y
Utility
Update ports
CUSTOM_PORT=10
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}58\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}57\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}60\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}56\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}66\"%" $HOME/.arkeo/config/config.toml
sed -i -e "s%^address = \"tcp://0.0.0.0:1317\"%address = \"tcp://0.0.0.0:${CUSTOM_PORT}17\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}80\"%; s%^address = \"0.0.0.0:9090\"%address = \"0.0.0.0:${CUSTOM_PORT}90\"%; s%^address = \"0.0.0.0:9091\"%address = \"0.0.0.0:${CUSTOM_PORT}91\"%" $HOME/.arkeo/config/app.toml
Disable Indexer
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.arkeo/config/config.toml
Enable Indexer
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.arkeo/config/config.toml
Update pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.arkeo/config/app.toml
Node support
Validator Info
arkeod status 2>&1 | jq .ValidatorInfo
Sync info
arkeod status 2>&1 | jq .SyncInfo.catching_up
Deleting a node
Before deleting a node make sure you save priv_validator_key.json
cd $HOME
sudo systemctl stop arkeod
sudo systemctl disable arkeod
sudo rm /etc/systemd/system/arkeod.service
sudo systemctl daemon-reload
rm -f $(which arkeod)
rm -rf $HOME/.arkeo
rm -rf $HOME/arkeo
Service setup
Reload service configuration
sudo systemctl daemon-reload
Enable service
sudo systemctl enable arkeod
Disable service
sudo systemctl disable arkeod
Start service
sudo systemctl start arkeod
Stop service
sudo systemctl stop arkeod
Restart service
sudo systemctl restart arkeod
Check service status
sudo systemctl status arkeod
Check service logs
sudo journalctl -u arkeod -f --no-hostname -o cat
Last updated