Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u junctiond -fStart service
sudo systemctl start junctiondStop service
sudo systemctl stop junctiondRestart service
sudo systemctl restart junctiondCheck service status
sudo systemctl status junctiondReload services
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable junctiondDisable Service
sudo systemctl disable junctiondNode info
junctiond status 2>&1 | jqYour node peer
echo $(junctiond tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.junction/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Key management
Add New Wallet
junctiond keys add $WALLETRestore executing wallet
junctiond keys add $WALLET --recoverList All Wallets
junctiond keys listDelete wallet
junctiond keys delete $WALLETCheck Balance
junctiond q bank balances $WALLET_ADDRESS Export Key (save to wallet.backup)
junctiond keys export $WALLETView EVM Prived Key
junctiond keys unsafe-export-eth-key $WALLETImport Key (restore from wallet.backup)
junctiond keys import $WALLET wallet.backupTokens
To valoper addressTo wallet addressAmount, amf
Withdraw all rewards
junctiond tx distribution withdraw-all-rewards --from $WALLET --chain-id junction --fees 200amf Withdraw rewards and commission from your validator
junctiond tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id junction --fees 200amf -y Check your balance
junctiond query bank balances $WALLET_ADDRESSDelegate to Yourself
junctiond tx staking delegate $(junctiond keys show $WALLET --bech val -a) 1000000amf --from $WALLET --chain-id junction --fees 200amf -y Delegate
junctiond tx staking delegate <TO_VALOPER_ADDRESS> 1000000amf --from $WALLET --chain-id junction --fees 200amf -y Redelegate Stake to Another Validator
junctiond tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000amf --from $WALLET --chain-id junction --fees 200amf -y Unbond
junctiond tx staking unbond $(junctiond keys show $WALLET --bech val -a) 1000000amf --from $WALLET --chain-id junction --fees 200amf -y Transfer Funds
junctiond tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000amf --fees 200amf -y Validator operations
MonikerIdentityDetailsAmount, amfCommission rateCommission max rateCommission max change rate
Create New Validator
junctiond tx staking create-validator \
--amount 1000000amf \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(junctiond tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id junction \
--fees 200amf \
-y Edit Existing Validator
junctiond tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id junction \
--fees 200amf \
-y Validator info
junctiond status 2>&1 | jqValidator Details
junctiond q staking validator $(junctiond keys show $WALLET --bech val -a) Jailing info
junctiond q slashing signing-info $(junctiond tendermint show-validator) Slashing parameters
junctiond q slashing params Unjail validator
junctiond tx slashing unjail --from $WALLET --chain-id junction --fees 200amf -y Active Validators List
junctiond 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
[[ $(junctiond q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(junctiond status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Signing info
junctiond q slashing signing-info $(junctiond tendermint show-validator) Governance
TitleDescriptionDeposit, amf
Create New Text Proposal
junctiond tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000amf \
--type Text \
--from $WALLET \
--fees 200amf \
-y Proposals List
junctiond query gov proposals Proposal IDProposal optionYesNoNo with vetoAbstain
View proposal
junctiond query gov proposal 1 Vote
junctiond tx gov vote 1 yes --from $WALLET --chain-id junction --fees 200amf -y Last updated