XOS Cheat Sheet and Key Management
This guide provides essential commands for managing wallets, nodes, and validators on the XOS network. Make sure the environment variables mentioned at the end are correctly configured before using these commands.
1. Key Management
Create a New Wallet
bash
xosd keys add $WALLETKeep the generated seed phrase safe. It is the only way to recover your wallet.
Recover Wallet from Seed Phrase
bash
xosd keys add $WALLET --recoverList Wallets
bash
xosd keys listShow Wallet Details
bash
xosd keys show $WALLETDelete Wallet
bash
xosd keys delete $WALLET2. Wallet Operations
Check Balance
bash
xosd q bank balances $(xosd keys show $WALLET -a)Send Tokens
bash
xosd tx bank send $(xosd keys show $WALLET -a) <receiver_wallet_address> <amount><denom> --chain-id $XOS_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto -yExample:
bash
xosd tx bank send $(xosd keys show $WALLET -a) xos1...zzz 1000000000000000000axos --chain-id $XOS_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto -y3. Validator Management
Create Validator
Configuration:
Generated Code:
Loading...Parameter Explanation:
| Parameter | Details |
|---|---|
--amount | Tokens self-delegated to the validator. 1000000000000000000axos = 1 XOS |
--from | Wallet used for the transaction. |
--commission-rate | Initial commission rate. |
--commission-max-rate | Maximum allowed commission rate. |
--commission-max-change-rate | Max daily commission change. |
--min-self-delegation | Minimum tokens for self-delegation. |
--pubkey | Validator's public key. |
--moniker | Validator nickname. |
--identity | Keybase ID for identity verification. |
--website | Validator's website URL. |
--details | Validator description. |
--security-contact | Email for security-related contact. |
Edit Validator
bash
xosd tx staking edit-validator
--moniker "$MONIKER" \
--identity "<new_keybase_id>" \
--website "<new_website>" \
--security-contact "<new_contact_email>" \
--details "<new_description>" \
--commission-rate "0.07" \
--chain-id $XOSD_CHAIN_ID \
--gas-prices 80000000000axos \
--gas-adjustment 1.5 \
--gas auto \
--from $WALLET \
-yDelegate Tokens
bash
xosd tx staking delegate <validator_address> <amount>axos --chain-id $XOSD_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto --from $WALLET -yWithdraw Rewards (Delegator)
bash
xosd tx distribution withdraw-rewards <validator_address> --chain-id $XOSD_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto --from $WALLET -yWithdraw Rewards (Validator Commission)
bash
xosd tx distribution withdraw-rewards <validator_address> --commission --chain-id $XOSD_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto --from $WALLET -yUnbond Tokens
bash
xosd tx staking unbond <validator_address> <amount>axos --chain-id $XOSD_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto --from $WALLET -yRedelegate Tokens
bash
xosd tx staking redelegate <source_validator_address> <destination_validator_address> <amount>axos --chain-id $XOSD_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto --from $WALLET -y4. Node Status & Info
Check Sync Status
bash
xosd status 2>&1 | jq .result.sync_infoCheck Peer Info
bash
xosd status 2>&1 | jq .result.sync_info.catching_up
xosd status 2>&1 | jq .result.node_info.listen_addrShow Node ID
bash
xosd tendermint show-node-idRestart Node
bash
sudo systemctl restart xosdView Node Logs
bash
sudo journalctl -u xosd -fo cat5. Governance
List Proposals
bash
xosd query gov proposalsView Proposal Details
bash
xosd query gov proposal <proposal_id>Vote on Proposal
bash
xosd tx gov vote <proposal_id> <yes|no|no_with_veto|abstain> --chain-id $XOS_CHAIN_ID --gas-prices 80000000000axos --gas-adjustment 1.5 --gas auto --from $WALLET -y6. Environment Variables
Make sure to set these in your ~/.bash_profile or equivalent shell config:
bash
export WALLET="wallet"
export MONIKER="YourMoniker"
export XOSD_CHAIN_ID="xos-testnet-1"
export XOSD_PORT="12"Apply the changes with:
bash
source ~/.bash_profileThis cheat sheet is provided to streamline XOS validator and wallet management.