Useful Commands

Service operations ⚙️

Check logs

sudo journalctl -u junctiond -f

Start service

sudo systemctl start junctiond

Stop service

sudo systemctl stop junctiond

Restart service

sudo systemctl restart junctiond

Check service status

sudo systemctl status junctiond

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable junctiond

Disable Service

sudo systemctl disable junctiond

Node info

junctiond status 2>&1 | jq

Your 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 $WALLET

Restore executing wallet

junctiond keys add $WALLET --recover

List All Wallets

junctiond keys list

Delete wallet

junctiond keys delete $WALLET

Check Balance

junctiond q bank balances $WALLET_ADDRESS 

Export Key (save to wallet.backup)

junctiond keys export $WALLET

View EVM Prived Key

junctiond keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

junctiond keys import $WALLET wallet.backup

Tokens

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_ADDRESS

Delegate 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

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 | jq

Validator 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

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 

View proposal

junctiond query gov proposal 1 

Vote

junctiond tx gov vote 1 yes --from $WALLET --chain-id junction  --fees 200amf -y 

Last updated