Set Validator
create a new wallet
junctiond keys add $WALLET
restore exexuting wallet
junctiond keys add $WALLET --recover
save wallet and validator address
WALLET_ADDRESS=$(junctiond keys show $WALLET -a)
VALOPER_ADDRESS=$(junctiond keys show $WALLET --bech val -a)
echo "export WALLET_ADDRESS="$WALLET_ADDRESS >> $HOME/.bash_profile
echo "export VALOPER_ADDRESS="$VALOPER_ADDRESS >> $HOME/.bash_profile
source $HOME/.bash_profile
check sync status
check sync status, once your node is fully synced, the output from above will print "false"
junctiond status 2>&1 | jq
before creating a validator
before creating a validator, you need to fund your wallet and check balance
junctiond query bank balances $WALLET_ADDRESS
Readyyy for create??? Lets gooooo
cd $HOME
#Create validator.json file
echo "{\"pubkey\":{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"$(junctiond comet show-validator | grep -Po '\"key\":\s*\"\K[^"]*')\"},
\"amount\": \"1000000amf\",
\"moniker\": \"test\",
\"identity\": \"\",
\"website\": \"\",
\"security\": \"\",
\"details\": \"guide from service.zulnaaa.com\",
\"commission-rate\": \"0.1\",
\"commission-max-rate\": \"0.2\",
\"commission-max-change-rate\": \"0.01\",
\"min-self-delegation\": \"1\"
}" > validator.json
#Create a validator using the JSON configuration
junctiond tx staking create-validator validator.json \
--from $WALLET \
--chain-id junction \
--gas auto --gas-adjustment 1.5 --fees 600amf \
--y