Setting up a Validator Node
This guide assumes that you have successfuly installed, configured and connected your validator to the desired network.
Creating a validator
To create a validator on the network you will need to send a transaction to the network bonding / staking your FET tokens. This process registers you as a validator and if you are one of the chosen validators you will start to produce blocks.
fetchd tx staking create-validator \
--amount=<the amount to bond> \
--pubkey=$(fetchd tendermint show-validator) \
--moniker="choose a moniker" \
--chain-id=<chain_id> \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="<the min self delegation>" \
--gas auto --gas-adjustment 1.5 --gas-prices "<network gas prices>" \
--from=<key_name>
Dorado Example
Before trying to create a validator you should verify that you have some tokens available beforehand. The easiest way to do this is via the CLI.
Here is an sample of a typical command line command that will register the node as running the validator.
fetchd tx staking create-validator \
--amount=1000000000000000000atestfet \
--pubkey=$(fetchd tendermint show-validator) \
--moniker="my-test-validator" \
--chain-id=dorado-1 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.01" \
--min-self-delegation="1000000000000000000" \
--gas auto --gas-adjustment 1.5 --gas-prices 1000000000atestfet \
--from=test-key
Editing a validator
Over time it is possible that validators will want to adjust various settings about their nodes. This can be simple things like the associated website for a validator or more consequential actions like altering the commission rate.
In either case, should a validator choose to make this update they would send an "edit-validator" transaction to the network. These can be created in a similar way to the "create-validator" transactions as shown below:
fetchd tx staking edit-validator
--moniker="choose a moniker" \
--website="https://fetch.ai" \
--details="To infinity and beyond!" \
--chain-id=<chain_id> \
--commission-rate="0.10" \
--from=<key_name>
Unbonding a validator
When / if a validator wants to stop being a validator for any reason, they can unbond some or all of their staked tokens. This is done with the following command.
fetchd tx staking unbond \
<validator operator address> \
<amount to remove> \
--from <key name>
An example of the command is given in the following example:
fetchd tx staking unbond \
fetchvaloper1jqqwdch3jmzlmj4tjfn67s3sqm9elkd3wrpspf \
1000000000000000000000atestfet \
--gas auto --gas-adjustment 1.5 --gas-prices 1000000000atestfet \
--from test-key