Convert Node into a Validator
Configuring a node to be a validator
First, setup and deploy a generic node as specified. Once the node is running and sync'ed with the blockchain, the node can be converted into a Validator node via the following steps.
Create a MANTRA Chain account
Create your mantrachain account if you don't have one already. It will be used to operate your validator node. You can, either, create a new account or import an existing account.
Create keys
Create a key file.
Generate a new public key with mnemonic phrase.
where <your-moniker-keys>
is the moniker and can be any valid string name
(e.g. validator01-keys
)
The above command will produce output like this:
KEEP THE MNEMONIC PHRASE IN A SAFE PLACE!
Import keys
Alternatively, if you already have an existing mnemonic that you'd like to use, then run the following:
Execute "create-validator" transaction.
You can create new validator from the public key of your node with the following command:
Execute "edit-validator" transaction.
You can edit your validator's public description. This info is to identify your validator and will be relied on by delegators to decide which validators to stake to. Make sure to provide input for every flag below. If a flag is not included in the command the field will default to empty (--moniker defaults to the machine name) if the field has never been set or remain the same if it has been set in the past.
The specifies which validator you are editing. If you choose to not include some of the flags below, remember that the --from flag must be included to identify the validator to update.
Commission Rate: The percentage of rewards earned by your validator that will be deducted as a fee before distributing the remaining rewards to your delegators.
Self-delegation: The share of your own stake that you want to delegate to your validator.
You can edit your validator's public description. This info is to identify your validator and will be relied on by delegators to decide which validators to stake to. Make sure to provide input for every flag below. If a flag is not included in the command the field will default to empty (--moniker defaults to the machine name) if the field has never been set or remain the same if it has been set in the past.
The specifies which validator you are editing. If you choose to not include some of the flags below, remember that the --from flag must be included to identify the validator to update.
Last updated