Validator Setup
Wallet Setup
Creating a New Wallet
the following command will be generate new mnemoic phrase remember to backup that..!!
you can change $Wallet
with your own name but i recomend you to still use default name
crossfid keys add $WALLET
Add exsisting wallet
if you have wallet before u should use this command
crossfid keys add $WALLET --recover
To see your wallet on your node you can check with this command
crossfid keys list
Write env to .profile
CROSSFI_WALLET_ADDRESS=$(crossfid keys show $WALLET -a)
CROSSFI_VALOPER_ADDRESS=$(crossfid keys show $WALLET --bech val -a)
echo 'export CROSSFI_WALLET_ADDRESS='${CROSSFI_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export CROSSFI_VALOPER_ADDRESS='${CROSSFI_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
Create validator
make sure you have fund on your wallet, to check that you can use this command
crossfid query bank balances $WALLET_ADDRESS
Before you create validator make sure your node already sync with the latest block, to check that use this command
crossfid status 2>&1 | jq .SyncInfo
If the ressult "catching_up": false you can go to next step for creating validator, but if the ressult is catching_up":true wait till that go to false
you can create validator using this command
crossfid --home ${DAEMON_HOME} tx staking create-validator \
--amount=1000000mpx \
--pubkey=$(crossfid --home ${DAEMON_HOME} tendermint show-validator) \
--moniker="${MONIKER}" \
--identity=${DISPLAY_PIC} \
--details="${DETAILS}" \
--website="${WEBSITE}" \
--security-contact="${CONTACT}" \
--chain-id="crossfi-evm-testnet-1" \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1000000" \
--gas="auto" \
--gas-prices="10000000000000mpx" \
--gas-adjustment=1.5 \
--from=$WALLET
Congratulations you finished and run the validator
It's possible that you won't have enough MPX to be part of the active set of validators in the beginning. Users are able to delegate to inactive validators (those outside of the active set) using the XFI Console You can confirm that you are in the validator set by using a third party explorer like XFI Scan.
Last updated