To create a validator at airchain node, you should import the data of your validator to the validator.json file
first of all, you have to execute this to see validator-pub-key
junctiond comet show-validator
then, you can see the result such a following output below
{"@type":"/cosmos.crypto.ed25519.PubKey","key":"xxxx"}
after getting the <validator-pub-key>
, you can insert it to the validator.json file
# Create validator.json file
sudo tee $HOME/.junction/validator.json > /dev/null <<EOF
{
"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"xxxx"},
"amount": "1000000amf",
"moniker": "<validator-name>",
"identity": "optional identity signature (ex. UPort or Keybase)",
"website": "validator's (optional) website",
"security": "validator's (optional) security contact email",
"details": "validator's (optional) details",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
EOF
# Create a validator using the JSON configuration
junctiond tx staking create-validator $HOME/.junction/validator.json \
--from $WALLET \
--chain-id junction \
--gas auto \
--gas-adjustment 1.5 \
--fees 500amf