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