TEXT 2,409 characters • 78 lines

# ==== Mock Data for Testing Ethereum Validator Node Setup ====
# These commands simulate a local testnet validator setup without using real ETH.
# You can run them on a development machine to verify your node configuration.

# 1. Create a local testnet directory
mkdir ~/eth-testnet && cd ~/eth-testnet

# 2. Generate dummy validator keys (no real ETH required)
# Using Lighthouse for example:
lighthouse account validator create \
  --datadir ./validator-data \
  --count 1 \
  --network goerli \
  --keystore-password testpassword

# 3. Start a local execution client in dev mode (Geth)
geth --dev --http --http.api eth,net,web3,personal \
     --datadir ./execution-data \
     --allow-insecure-unlock

# 4. Start a local consensus client in test mode (Lighthouse)
lighthouse bn \
  --network goerli \
  --execution-endpoint http://localhost:8545 \
  --datadir ./beacon-data

# 5. Start the validator client with the dummy keys
lighthouse vc \
  --network goerli \
  --datadir ./validator-data \
  --beacon-nodes http://localhost:5052
# ==== Ethereum Validator Node Setup Script (Ubuntu 22.04) ====

# 1. Update system
sudo apt update && sudo apt upgrade -y

# 2. Install Execution Client (Geth example)
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt update
sudo apt install geth -y

# 3. Install Consensus Client (Lighthouse example)
sudo apt install curl build-essential pkg-config libssl-dev git -y
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
git clone https://github.com/sigp/lighthouse.git
cd lighthouse
make
sudo make install
cd ..

# 4. Generate Validator Keys (Mainnet)
# Visit https://launchpad.ethereum.org for official key generation and deposit process
# Example (Goerli testnet):
lighthouse account validator create \
  --datadir /var/lib/ethereum/validator \
  --count 1 \
  --network goerli \
  --keystore-password mypassword

# 5. Start Execution Client
nohup geth --syncmode=full --http --http.api eth,net,web3 \
     --datadir /var/lib/ethereum/execution &

# 6. Start Consensus Client
nohup lighthouse bn \
  --network mainnet \
  --execution-endpoint http://localhost:8545 \
  --datadir /var/lib/ethereum/beacon &

# 7. Start Validator Client
nohup lighthouse vc \
  --network mainnet \
  --datadir /var/lib/ethereum/validator \
  --beacon-nodes http://localhost:5052 &