Service operations ⚙️
Check logs
sudo journalctl -u xiond -fo cat
Start service
sudo systemctl start xiond
Stop service
sudo systemctl stop xiond
Restart service
sudo systemctl restart xiond
Check service status
sudo systemctl status xiond
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable xiond
Disable Service
sudo systemctl disable xiond
Node info
xiond status 2>&1 | jq
Your node peer
echo $(xiond tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.xiond/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
xiond keys add $WALLET
Restore executing wallet
xiond keys add $WALLET --recover
List All Wallets
xiond keys list
Delete wallet
xiond keys delete $WALLET
Check Balance
xiond q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
xiond keys export $WALLET
View EVM Prived Key
xiond keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
xiond keys import $WALLET wallet.backup
Tokens
To valoper address
To wallet address
Amount, uxion
Withdraw all rewards
xiond tx distribution withdraw-all-rewards --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5
Withdraw rewards and commission from your validator
xiond tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y
Check your balance
xiond query bank balances $WALLET_ADDRESS
Delegate to Yourself
xiond tx staking delegate $(xiond keys show $WALLET --bech val -a) 1000000uxion --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y
Delegate
xiond tx staking delegate <TO_VALOPER_ADDRESS> 1000000uxion --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
xiond tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uxion --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y
Unbond
xiond tx staking unbond $(xiond keys show $WALLET --bech val -a) 1000000uxion --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y
Transfer Funds
xiond tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uxion --gas auto --gas-adjustment 1.5 -y
Validator operations
Moniker
Identity
Details
Amount, uxion
Commission rate
Commission max rate
Commission max change rate
Create New Validator
xiond tx staking create-validator \
--amount 1000000uxion \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(xiond tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id xion-testnet-2 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Existing Validator
xiond tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id xion-testnet-2 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
xiond status 2>&1 | jq
Validator Details
xiond q staking validator $(xiond keys show $WALLET --bech val -a)
Jailing info
xiond q slashing signing-info $(xiond tendermint show-validator)
Slashing parameters
xiond q slashing params
Unjail validator
xiond tx slashing unjail --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y
Active Validators List
xiond q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
[[ $(xiond q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(xiond status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
xiond q slashing signing-info $(xiond tendermint show-validator)
Governance
Title
Description
Deposit, uxion
Create New Text Proposal
xiond tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uxion \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
xiond query gov proposals
Proposal ID
Proposal option
View proposal
xiond query gov proposal 1
Vote
xiond tx gov vote 1 yes --from $WALLET --chain-id xion-testnet-2 --gas auto --gas-adjustment 1.5 -y