Service operations ⚙️
Check logs
Copy sudo journalctl -u junctiond -f
Start service
Copy sudo systemctl start junctiond
Stop service
Copy sudo systemctl stop junctiond
Restart service
Copy sudo systemctl restart junctiond
Check service status
Copy sudo systemctl status junctiond
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable junctiond
Disable Service
Copy sudo systemctl disable junctiond
Node info
Copy junctiond status 2>&1 | jq
Your node peer
Copy 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
Copy junctiond keys add $WALLET
Restore executing wallet
Copy junctiond keys add $WALLET --recover
List All Wallets
Delete wallet
Copy junctiond keys delete $WALLET
Check Balance
Copy junctiond q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
Copy junctiond keys export $WALLET
View EVM Prived Key
Copy junctiond keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy junctiond keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
Copy junctiond tx distribution withdraw-all-rewards --from $WALLET --chain-id junction --fees 200amf
Withdraw rewards and commission from your validator
Copy junctiond tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id junction --fees 200amf -y
Check your balance
Copy junctiond query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy junctiond tx staking delegate $(junctiond keys show $WALLET --bech val -a) 1000000amf --from $WALLET --chain-id junction --fees 200amf -y
Delegate
Copy junctiond tx staking delegate < TO_VALOPER_ADDRES S > 1000000amf --from $WALLET --chain-id junction --fees 200amf -y
Redelegate Stake to Another Validator
Copy junctiond tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000amf --from $WALLET --chain-id junction --fees 200amf -y
Unbond
Copy junctiond tx staking unbond $(junctiond keys show $WALLET --bech val -a) 1000000amf --from $WALLET --chain-id junction --fees 200amf -y
Transfer Funds
Copy junctiond tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000amf --fees 200amf -y
Validator operations
Create New Validator
Copy 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
Copy 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
Copy junctiond status 2>&1 | jq
Validator Details
Copy junctiond q staking validator $( junctiond keys show $WALLET --bech val -a )
Jailing info
Copy junctiond q slashing signing-info $( junctiond tendermint show-validator )
Slashing parameters
Copy junctiond q slashing params
Unjail validator
Copy junctiond tx slashing unjail --from $WALLET --chain-id junction --fees 200amf -y
Active Validators List
Copy 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
Copy [[ $(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
Copy junctiond q slashing signing-info $( junctiond tendermint show-validator )
Governance
Create New Text Proposal
Copy junctiond tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000amf \
--type Text \
--from $WALLET \
--fees 200amf \
-y
Proposals List
Copy junctiond query gov proposals
View proposal
Copy junctiond query gov proposal 1
Vote
Copy junctiond tx gov vote 1 yes --from $WALLET --chain-id junction --fees 200amf -y
Last updated 4 months ago