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