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