Janus / Docs

Chain 36530 · fork 0x10000038

Host a node.
Then ask to validate.

The node files are in JanusChain/Chain-and-Explorer. Chain id 36530. The coin is JANUS, symbol JAN. An address is JAN and 40 hex characters. The fork is 0x10000038.

The files that have to match

Copy .env.example to .env and leave the values as they are written. The supply line keeps the name the genesis tool already reads. People see the coin as JANUS.

SettingValue
Chain id36530
Slot10 seconds
Epoch8 slots
Fork0x10000038
Block gas limit30,000,000
Genesis validators in that file2
Entry40,000 JANUS effective balance
Ejection20,000 JANUS
New validators in one epochAt most 8

A deposit file signed for another fork is rejected. A client on another chain id is a different chain, even when the coin name looks the same.

Where the scripts live

Use the Linux user janus and the directory /opt/janus. Leave any older chain directory where it is. The build needs several gigabytes of memory. 16 GB is comfortable. Audits of the client are not finished. Do not put real value on this testnet.

Once, as root:

git clone https://github.com/JanusChain/Chain-and-Explorer.git /opt/janus
cd /opt/janus
bash scripts/00-vps-bootstrap.sh

Script 00 creates the user janus and installs the build tools. It does not turn on a firewall. Then leave root:

sudo -iu janus
cd /opt/janus
bash scripts/01-clone-sources.sh
bash scripts/02-prepare-secrets.sh
bash scripts/03c-address-prefix.sh
bash scripts/03-create-deployer-address.sh
bash scripts/04-write-genesis-config.sh
bash scripts/05-generate-genesis.sh
bash scripts/06-build-clients.sh
bash scripts/07-start-node.sh
bash scripts/08-status.sh
ScriptWhat it writes
01Pinned sources, and .env from .env.example when .env is missing.
02A 32-word validator phrase and a keystore password, on this machine. The script does not print them.
03cAccount labels become JAN. The 20-byte account stays the same.
03The execution client, and one setup account under secrets/deployer. The public address is the only line it records.
04The genesis config. The fork stays 0x10000038.
05Genesis. The tool prints the phrase and the password on that screen. Leave the output there.
06The beacon, the validator program, and genesis.ssz. It checks the deposit file is signed for 0x10000038.
07Starts execution, the beacon, and the validator. RPC stays at http://127.0.0.1:8545. The engine stays on 127.0.0.1:8551. The beacon RPC stays on 127.0.0.1:4000.
08Whether those three processes are running, and the block number.
09Stops the three processes. Chain data and keys stay on disk.

A block number other than 0x0 means blocks are being saved. Ports 8545, 8551, 4000, and 3500 stay on this machine. The public window for the running testnet is testnet.januschain.xyz.

Script 10 is for a brand-new chain that stayed at block zero, and only inside /opt/janus. It discards the blocks that chain has saved. The public testnet is already producing blocks, so that script is the wrong tool for it.

Two keys

A spending account and a validator key are both ML-DSA-87. They are different keys. The spending seed is 51 bytes. The wallet can show it as 0x and 102 hex characters, or as 36 words. That seed spends JANUS. It does not propose a block.

The validator phrase from script 02 is 32 words. The public key is 2,592 bytes. A validator signature is 4,627 bytes. The keystore and output/metadata/keystore_password.txt stay on the machine that signs. The public deposit file is under output/metadata/validator_keys. Its name starts with deposit_data-. That file holds the public key, the withdrawal credentials, and the deposit signature. It does not hold the phrase.

Ask to validate on the public testnet

Scripts 04 and 05 write the genesis for the machine you are on. The public testnet is the chain the explorer is already reading. A fresh genesis on a second computer is a separate chain with the same chain id, and the explorer will not follow it.

The public chain already has two genesis validators. A further seat starts at Apply. The spending address you type there is the JAN account that will pay the stake. It needs 40,020 JANUS: 40,000 for the deposit, and at least 20 left in the wallet. Upload deposit.json, which is the public deposit_data- file under a new name. The fork inside it is 0x10000038. Leave the keystore, the password file, the 32-word phrase, and the spending seed off that form.

A yes sends nothing. A no sends nothing. After a yes, open the explorer wallet for that spending address and use the Deposit tab. That tab sends 40,000 JANUS with the same public file. The plain Send button is the wrong control. The deposit address is the one the chain config publishes. At most eight new validators enter in one epoch. The public key shows on the explorer's Validators page after the deposit is in a block. The node still has to be running. Apply does not start it.

Import that keystore on one machine. A second import can sign the same duty twice. A missed slot stays empty, and an empty slot is the safer result. After a reboot, start the same programs again with script 07. Leave the chain data in place.

How a block is produced · The signer · The public machine