Before creting validator u need create wallet and fund the address u can get faucet from zenrock
zenrockd keys add $WALLET
Save the mnemoic and the addres
if u want to use existing wallet like keplr or leap u can u use this command bellow.
zenrockd keys add $WALLET --recover
After your wallet has get fund wait the node sync (Catching up : False)
echo "{\"pubkey\":{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"$(zenrockd comet show-validator | grep -Po '\"key\":\s*\"\K[^"]*')\"},
\"amount\": \"1000000urock\",
\"moniker\": \"test\",
\"identity\": \"\",
\"website\": \"\",
\"security\": \"\",
\"details\": \"I love blockchain ❤️\",
\"commission-rate\": \"0.1\",
\"commission-max-rate\": \"0.2\",
\"commission-max-change-rate\": \"0.01\",
\"min-self-delegation\": \"1\"
}" > validator.json
zenrockd tx staking create-validator validator.json \
--from $WALLET \
--chain-id gardia-2 \
--fees 30urock