Becoming a Validator on Mainnet

Creating a Wallet

Create a New Wallet: To create a new wallet, use the command below. Remember to save the mnemonic for future recovery.

crossfid keys add $WALLET

Recover Your Wallet Using a Seed Phrase: If you need to recover your wallet, you can use the following command with your seed phrase:

crossfid keys add $WALLET --recover

List All Your Wallets: To see a list of all configured wallets in your client:

crossfid keys list

Saving Wallet Information

Store Wallet and Validator Addresses: You can store your wallet and validator addresses into environment variables for easy access:

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

Funding Your Wallet

Add Funds to Your Wallet: Currently, this section is not applicable. Please ensure your wallet has funds for transactions and staking if required by the network.

Creating a Validator

Check Your Wallet Balance: Before creating a validator, check the balance of your wallet to ensure you have enough funds:

crossfid query bank balances $CROSSFI_WALLET_ADDRESS

Create a Validator Node: To set up your validator on the Crossfi network, use the following command. Adjust the parameters such as the amount of tokens to stake (1000000mpx in this example) according to your situation:

crossfid tx staking create-validator \
--amount 10000000000000mpx \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(crossfid tendermint show-validator) \
--moniker $NODENAME \
--chain-id mineplex-mainnet-1 \
--details="Node Expert" \
--fees 3000000000000000000mpx \
--gas 300000 \
--gas-adjustment 1.3 \
-y

This guide provides clear steps for setting up a wallet, funding it, and establishing a validator on the Crossfi network. Make sure to follow the network-specific requirements and adjust the commands accordingly.

Delegate Stake

To delegate your tokens to a validator, use the following command. In this example, we delegate 1000000mpx to the validator whose operator address is set in your environment variable CROSSFI_VALOPER_ADDRESS. Adjust the amount based on the number of tokens you wish to stake.

crossfid tx staking delegate $CROSSFI_VALOPER_ADDRESS 1000000mpx --from=$WALLET --chain-id=$CROSSFI_CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 3000000000000000000mpx

Parameters Explanation:

  • --from=$WALLET: Specifies the wallet from which the tokens will be delegated.

  • $CROSSFI_VALOPER_ADDRESS: The operator address of the validator you are delegating to.

  • 1000000mpx: The amount of tokens you are delegating. Adjust this value according to your intention.

  • --chain-id=$CROSSFI_CHAIN_ID: The identifier for the Crossfi network chain you are interacting with.

  • --gas auto: Automatically estimates the amount of gas needed to perform the transaction.

  • --gas-adjustment 1.5: Multiplier to apply to the estimated gas to ensure the transaction goes through in conditions of varying network demand.

  • --gas-prices 10000000000000mpx: Sets the maximum price you are willing to pay per unit of gas.

Last updated