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
Copy crossfid keys add $WALLET
Add exsisting wallet
if you have wallet before u should use this command
Copy crossfid keys add $WALLET --recover
To see your wallet on your node you can check with this command
Write env to .profile
Copy 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
Copy 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
Copy 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
Copy 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
Last updated 10 months ago