Testnet
Daodiseo
- Chain ID
Run these after the install guide, which sets $WALLET, $MONIKER and the chain variables.
Keys and wallet
Add a new key
achillesd keys add $WALLETRecover a key
achillesd keys add $WALLET --recoverList keys
achillesd keys listWallet balance
achillesd q bank balances $(achillesd keys show $WALLET -a)
Validator
Create a validator
cat > $HOME/validator.json << EOF { "pubkey": $(achillesd comet show-validator), "amount": "1000000uodis", "moniker": "$MONIKER", "identity": "", "website": "", "security": "", "details": "", "commission-rate": "0.05", "commission-max-rate": "0.20", "commission-max-change-rate": "0.05", "min-self-delegation": "1" } EOF achillesd tx staking create-validator $HOME/validator.json --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yEdit the validator
achillesd tx staking edit-validator --new-moniker "$MONIKER" --identity "" --website "" --details "" --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yUnjail
achillesd tx slashing unjail --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yValidator details
achillesd q staking validator $(achillesd keys show $WALLET --bech val -a)
Tokens
Withdraw all rewards
achillesd tx distribution withdraw-all-rewards --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yWithdraw commission and rewards
achillesd tx distribution withdraw-rewards $(achillesd keys show $WALLET --bech val -a) --commission --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yDelegate to yourself
achillesd tx staking delegate $(achillesd keys show $WALLET --bech val -a) 1000000uodis --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yRedelegate
achillesd tx staking redelegate $(achillesd keys show $WALLET --bech val -a) <TO_VALOPER> 1000000uodis --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -yUnbond
achillesd tx staking unbond $(achillesd keys show $WALLET --bech val -a) 1000000uodis --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -ySend tokens
achillesd tx bank send $WALLET <TO_ADDRESS> 1000000uodis --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -y
Governance
List proposals
achillesd q gov proposalsView a proposal
achillesd q gov proposal <ID>Vote
achillesd tx gov vote <ID> yes --from $WALLET --chain-id $ODIS_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.25uodis -y # yes | no | abstain | no_with_veto
Maintenance
Node status
achillesd status 2>&1 | jqNode peer address
echo $(achillesd comet show-node-id)@$(wget -qO- eth0.me):$ODIS_PORT656Live peers
curl -s localhost:$ODIS_PORT657/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr | split(":") | last)"' | paste -sd,Check the validator key
[[ $(achillesd q staking validator $(achillesd keys show $WALLET --bech val -a) -o json | jq -r .validator.consensus_pubkey.value) = $(achillesd comet show-validator | jq -r .key) ]] && echo "match" || echo "MISMATCH"Reset chain data
achillesd comet unsafe-reset-all --keep-addr-book --home $HOME/.achillesRemove the node
sudo systemctl stop achillesd sudo systemctl disable achillesd sudo rm /etc/systemd/system/achillesd.service sudo systemctl daemon-reload rm -rf $HOME/.achilles $(which achillesd)
Service
Service status
sudo systemctl status achillesdFollow logs
sudo journalctl -fu achillesd -o catRestart
sudo systemctl restart achillesdStop
sudo systemctl stop achillesd