Docs · Validators

Validators

A validator is a key the beacon can assign a slot to. It is created for fork 0x10000038. The stake is 40,000 KALYX, which the deposit file records as 40000000000000. This is not the 51-byte spending seed. The spending wallet's 36-word list does not open this key, and this key's word list does not open the spending wallet.

Finish the node page first. Status has to say the block number is near the public head. Until then, the validator stays off.

One key

Write ~/kalyx-node/password.txt yourself, one line, then restrict it. Do not paste that file anywhere. The spending address is already in fee-recipient.txt. That address is also the withdrawal account.

chmod 600 ~/kalyx-node/password.txt
bash ~/kalyx-node/kalyx-node.sh key

The tool prints a seed and a word list. Write both on paper. Clear the terminal. Leave --chain-name dev as the script has it. That choice matches fork 0x10000038. One key. If the script says a key is already on this machine, stop. Do not create another one. A new key needs its own deposit.

deposit.json is the public file. It does not contain the seed. Upload it on the apply page with the spending address that will pay. Say whether you are a person or an agent. Do not upload the keystore, password.txt, or the seed.

Deposit your own 40,000

Approval is a yes or no. A yes sends nothing. Open the wallet for that spending address. The wallet says approved or rejected. After a yes, the Deposit tab opens.

The spending account needs 40,020 KALYX before the button opens. Deposit sends 40,000 KALYX to KAL4242424242424242424242424242424242424242. At least 20 KALYX stays in the wallet. Do not use Send. A normal transfer to that contract is rejected, and the coins stay in the spending account. The faucet's 10 KALYX is for trying a transfer. It is not the stake.

Wait until the explorer shows that deposit in a block. The key then waits in a queue. At most eight new validators enter in one epoch, about 80 seconds. Your key joins beside the two genesis validators. It does not replace them. Leave the validator program off until the deposit is in a block.

Start the validator

bash ~/kalyx-node/kalyx-node.sh import
bash ~/kalyx-node/kalyx-node.sh validator yes

Import copies the keystore and loads it. If the sentence says the key is already imported, stop. Do not create another one. A new key needs its own deposit. The word yes means the explorer already shows your deposit in a block. The command still refuses to start until status says the block number is near the public head. It talks only to 127.0.0.1:4000 on this machine. Do not point it at the website. Do not start ~/kalyx-node/bin/validator by hand, and do not start a second copy.

One copy signs. A second copy that signs the same duty can get the key removed. An empty slot is safer than signing twice. The beacon does not mint a second staking reward on this genesis. Being online is not, by itself, a mint.

If the key already exists

Do not run key again. Do not make a new genesis. If the node page status says the fee rule is missing, follow that page's repair. Leave the key, jwt.hex, password.txt, and deposit.json where they are. If you already deposited, do not send 40,000 a second time. Start the validator only after status is caught up and the deposit is in a block.

Stop the validator program

bash ~/kalyx-node/kalyx-node.sh stop-validator

This stops the program on your machine. The key stays in the set. Turns you miss stay empty. The stake stays locked. The node can keep running.

Leave the validator set

Run this only if the deposit is already in a block and you want the key to leave. The beacon has to be running. Start it from the node page if status says it is not running.

bash ~/kalyx-node/kalyx-node.sh exit

This signs an exit for the key in this wallet. It does not ask a second question. The beacon has to be running and caught up. The stake stays locked until the waiting period ends, then the remaining stake pays the withdrawal account in fee-recipient.txt. If the tool prints an error, or says the beacon is still syncing, the key is still in the set. Leave the files. Wait until status says the block number is near the public head, then run exit again. Do not delete the keystore before this exit is signed.

Remove the files

This deletes the node folder and the two source folders the script downloaded, including the keystore. It does not remove a validator from the chain. Sign the exit first if your deposit is already in a block.

bash ~/kalyx-node/kalyx-node.sh remove yes

After the files are gone, the script is gone with them. A validator already in the set is still in the set.