Coder Social home page Coder Social logo

validator-install's Introduction

Ethereum Validator - Automated Setup

Install and configure an Ethereum Validator (mainnet/testnet) in 1 click, as opposed to hours normally spent on manual configuration.

Now updated to include multiple clients (geth, besu, nethermind, teku, nimbus, lighthouse, prysm)

Summary

Python script that simplifies and automates the installation and configuration of the Ethereum validator node.

It's based on Somer Esat's - Lighthouse/Geth guide and has been expanded to include multple execution and consensus engines with a single Python script to automate the setup process.

Important Note: This script does not generate any security-related items such as validator keystore, deposit data, or mnemonic. It simply prepares the node for staking by installing the binaries, creating users, writing service files, etc.

After running the script, Geth and Ligthouse (or whichever clients you choose) will be installed and fully configured to begin syncing.

If you want to run a full validator, you'll also need to import an existing keystore or generate new keystores to run the validator.

You can follow Somer's guide to safely generate keys offline and import the keystores.

Key Generation Resources: Waygu Key Generator, Ethereum Deposit CLI, and Ubuntu - Key Generation Guide

Validator Install Script

The validator_install.py script performs the following tasks:

  1. Choose Ethereum network (mainnet, goerli, sepolia).
  2. Choose Execution Client (Nethermind, Besu, Geth)
  3. Choose Consensus Client (Nimbus, Teku, Lighthouse, Prysm)
  4. Lets you set an Ethereum address for validator tips (optional).
  5. Lets you set Checkpoint Sync URL (optional).
  6. Installs and configures Universal Firewall (ufw).
  7. Creates necessary users, directories, and files.
  8. Downloads and installs the latest client binaries.
  9. Writes and saves service files for Execution, Beacon, and Validator.
  10. Displays a summary of the installation.

To run the script, use these commands:

sudo apt-get update

sudo apt-get install git

pip install requests

git clone https://github.com/accidental-green/validator-install.git

python3 validator-install/validator_install_multi.py


After successful installation, you can start the services:

Note: Change name of client (geth, besu, nethermind, teku, nimbus, lighthousebeacon, lighthousevalidator, prysmbeacon, prysmvalidator)

sudo systemctl start geth

sudo systemctl start lighthousebeacon

sudo systemctl start lighthousevalidator


Open 3 new terminals (ctrl+alt+t) and view the journals:

sudo journalctl -fu geth.service

sudo journalctl -fu lighthousebeacon.service

sudo journalctl -fu lighthousevalidator.service


The services should start, find peers, and eventually begin syncing. If you notice any errors (red/yellow), visit EthStaker Discord for help.

You can stop the services by changing the "start" commands to "stop".

That's it, happpy staking! Feel free to contribute to the project if you'd like to add other clients!


Disclaimer: This script is for testing purposes only. Do not use on mainnet Validators.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.