Docs
Run a node
You do this on your own Linux machine. The machine follows the Kalyx testnet that is already producing blocks. The chain id is 21520. You join that chain. Do not make a new genesis.
Two programs store the chain. The execution program stores accounts and transfers. The beacon stores the slot schedule. They talk only on this machine, at 127.0.0.1:8545 and 127.0.0.1:8551. The validator program is a third program. The validator stays off until the validator page.
Run the commands as your own user. Do not run them as root. Go 1.25 or newer is enough. You also need git, python3, a C compiler, and free disk. The beacon keeps a large record.
Install
Save the script and run setup once. Setup downloads the public genesis files, installs the fee rule before it builds, and builds from the versions pinned in the script. A newer download will not follow this chain. The execution program is the one setup builds. The beacon, the validator, and the key tool are written to ~/kalyx-node/bin. Do not run a program from a source folder. A program built without the fee rule stops at the first transfer. Setup creates jwt.hex only when that file is missing. It initializes the database only when the database is missing. It does not create a validator key, and it does not start the validator.
curl -fsS -o kalyx-node.sh https://kalyx.si/docs/kalyx-node.sh
bash kalyx-node.sh setup
Setup takes a while. When it finishes, the same script is at ~/kalyx-node/kalyx-node.sh. The commands below use that copy, so they work after you leave this folder and after a reboot. Setup tells you to write your address. The first line of the downloaded peer file starts with kalnode://. That line is how the node finds the network. It is not a wallet address. Do not edit the downloaded files.
Your address
Open ~/kalyx-node/fee-recipient.txt and put your spending KAL address on the only line. That address receives fees. It is not the validator key. Leave the label as KAL.
Start
bash ~/kalyx-node/kalyx-node.sh start
Start runs the execution program, waits, then runs the beacon. It refuses to run if jwt.hex is missing or is not 64 characters. It never makes a new jwt.hex. It does not start the validator. Leave 8545, 8551, and 4000 on this machine. The script does not open them to the internet.
Check
bash ~/kalyx-node/kalyx-node.sh status
Status prints one sentence. Do what that sentence says.
- The block number is near the public head, or it is rising: leave it. The validator stays off.
- Signature is invalid: run
bash ~/kalyx-node/kalyx-node.sh stop, thenbash ~/kalyx-node/kalyx-node.sh start. Do not make a newjwt.hex. - Genesis time differs: stop. Do not delete anything yet.
- Peers are still 0: this machine has not reached the public node. Waiting does not mean the chain stopped.
- The fee rule, or an invalid record: run repair, below.
Do not run setup again unless the sentence says the programs are not built. Do not run openssl. A new jwt.hex while a program is still running is what leaves the block number at 0x0.
If this machine already has a node
Download the script if you do not have it yet. Then run status. Keep jwt.hex, password.txt, deposit.json, and the keys.
curl -fsS -o ~/kalyx-node/kalyx-node.sh https://kalyx.si/docs/kalyx-node.sh
bash ~/kalyx-node/kalyx-node.sh status
If the sentence says signature is invalid, stop and start. Do not run setup. Do not make a new jwt.hex.
bash ~/kalyx-node/kalyx-node.sh stop
bash ~/kalyx-node/kalyx-node.sh start
bash ~/kalyx-node/kalyx-node.sh status
If the sentence says the fee rule is missing, repair replaces only the execution database after it rebuilds the execution program. Leave data/beacon. If the genesis time differs, repair deletes nothing.
bash ~/kalyx-node/kalyx-node.sh stop
bash ~/kalyx-node/kalyx-node.sh repair
bash ~/kalyx-node/kalyx-node.sh start
bash ~/kalyx-node/kalyx-node.sh status
Do not start ~/kalyx-node/bin/validator from this page. A key that is already here stays here. Do not create a second key. The validator page is the next step, and only after status says the block number is near the public head.
After a reboot
bash ~/kalyx-node/kalyx-node.sh start
bash ~/kalyx-node/kalyx-node.sh status
Do not run setup on an ordinary reboot. Do not delete data/execution or data/beacon. Those folders are the chain you already checked.
What this node cannot do
This node follows the chain. It does not hold the two genesis validator keys. If your machine is off, those validators keep writing blocks. Your node cannot stop the chain, rewind it, or fill someone else's turn. An empty slot mints nothing.
The deposit contract is KAL4242424242424242424242424242424242424242. When you are ready to stake, use the Deposit tab on the wallet. Do not use Send. A normal transfer to that contract is rejected, and the coins stay in the spending account. The validator page is that path, including how to stop and how to remove the files.