Lighthouse

This guide ensures that users can easily follow the steps to withdraw their validator using Lighthouse on PulseChain, both for testnet and mainnet.

Prerequisites

Ensure you have the following files in your /validator_keys directory:

  • keystore.json file

  • validator_password.txt (You will need to create this)


Step 1: Create the Password File

The password is what you used when creating the keystore file during the setup of your validator. You can also find this password in the validators/validator_definitions.yml file.

Testnet

  1. Define the password file path:

Example: PASSWORD_FILE="/mnt/pulsetest/validator_keys/validator_password.txt"
  1. Create the new file, then save your password into the file (your password should be the actual password that you used for your validator keystore file):

sudo nano PASSWORD_FILE
  1. Set the correct permissions for the file:

chmod 600 PASSWORD_FILE

Mainnet

Example: PASSWORD_FILE="/mnt/pulse/validator_keys/validator_password.txt"
sudo nano validator_password.txt
chmod 600 validator_password.txt

Step 2: Run the Lighthouse Exit Command for PulseChain

This will initiate the exit process for your validator.

Testnet

Example: 

sudo -u validator docker run --rm -it \
  --network=host \
  -v "/mnt/pulsetest/validator_keys:/validator_keys" \
  -v "/mnt/pulsetest/validators:/validator_files" \
  registry.gitlab.com/pulsechaincom/lighthouse-pulse:latest \
  lighthouse account validator exit \
  --keystore "/validator_keys/keystore-m_12381_3600_0_0_0-1716932149.json" \
  --password-file "/validator_keys/validator_password.txt" \
  --beacon-node http://127.0.0.1:5052 \
  --network pulsechain_testnet_v4

Mainnet

Example:

sudo -u validator docker run --rm -it \
  --network=host \
  -v "/mnt/pulse/validator_keys:/validator_keys" \
  -v "/mnt/pulse/validators:/validator_files" \
  registry.gitlab.com/pulsechaincom/lighthouse-pulse:latest \
  lighthouse account validator exit \
  --keystore "/validator_keys/keystore-m_12381_3600_0_0_0-1716571048.json" \
  --password-file "/validator_keys/validator_password.txt" \
  --beacon-node http://127.0.0.1:5052 \
  --network pulsechain

Step 3: Exit Your Validator

Type the following: Exit my validator, then press Enter.


Step 4: Exit Your Validator

You can verify the exit status using the following links:

Use your pubkey to check your status.

Note: it takes about 24 hours to withdraw from the validator.

Last updated