Run a Layer Validator
Follow the steps to become a Layer testnet validator.
Last updated
Follow the steps to become a Layer testnet validator.
Last updated
You will need a and (loya).
Open up a new terminal window on your node machine and check if your address has funds:
This outputs something like:
If you need testnet TRB, send us a message in the public (#testing-layer channel)! Note: You will need to once they are received on Sepolia.
Retrieve Your Validator Public Key
With your layer
folder as the active directory, use the command:
This returns your validator pubkey. Should look like this:
Copy the pubkey to your clipboard for step 4.
Edit the Validator Configuration File
Create (or edit) the validator.json file:
When creating your validator, be sure that you are NOT choosing an "amount" that is larger than your balance of test-net TRB.
Keep a balance of loya available for paying gas fees if you're going to be running the data reporter.
TRB has 6 decimals: 1 loya is 0.000001 TRB
Edit or add the following code:
Edit "pubkey"
to match yours from step 4.
Edit "amount"
to be the amount of testnet TRB that you would like to stake with 6 decimals and the "loya" denom. (For example: if you want to stake 99 TRB use "amount": "99000000loya"
)
Edit "moniker"
with a name you choose for your validator node.
Edit identity, website, security, and details with your identifying information. (optional)
Edit commission-rate
, commission-max-rate
, commission-max-change-rate
, and min-self-delegation
if desired. (these can be changed later using the edit-validator
command).
Create Your Validator: A few things need to happen (in order) to successfully start a layer validator. You should have two terminal windows open: a command window and a node window.
Run the following command to create-validator:
Restart your node, adding the --key-name flag. Head back to the terminal where you're running your node and use ctrl^c to stop it. Then use the command:
You should see the log quickly catch up. Are you a validator now?
Verify Your Validator Creation Ensure your validator was created successfully using the command replacing your_validator_address:
If status: 3,
you are staked and validating!
Staking on layer is limited to 5% of the total staked tokens per 12 hours. You can check the current amount that's allowed to stake .
You can unjail with steps shown in the