🦦
Erigon 2 Documentation
  • Welcome to Erigon 2
    • Disclaimer
    • Project Links
  • ELI5 NODES
    • How to run an Ethereum node
    • How to run a Gnosis Chain node
    • How to run a Polygon node
  • Basic usage
    • Getting started
      • Linux and MacOS
      • Windows
      • Docker
    • Usage
      • Type of Node
    • Upgrading from a previous version
    • Supported Networks
    • Default Ports and Firewalls
    • Otterscan
    • Wallet
  • Advanced Usage
    • Configure Erigon
    • Consensus Layer
      • Prysm
      • Lighthouse
      • JWT secret
      • Block production
    • Options
    • RPC daemon
    • TxPool
    • Sentry
    • Downloader
    • TLS Authentication
    • ❔FAQ
    • External resources
      • Erigon on a Raspberry Pi 4
  • DIAGNOSTIC TOOL
    • Introduction
    • Installation
    • Setup
    • User Interface
  • About
    • Contributing to Erigon
    • Donate
    • License
    • Privacy policy
Powered by GitBook
On this page
  • Hardware Requirements
  • Tips for Faster Sync​
  • Software Prerequisites

Was this helpful?

  1. Basic usage

Getting started

Installing Erigon

Last updated 3 months ago

Was this helpful?

In order to use Erigon, the software has to be installed first. There are several ways to install Erigon, depending on the operating system and the user's choice of installation method, e.g. using a package manager, container or building from source.

The current stable and production-ready version, which is fully documented in these pages, is Erigon 2.

Hardware Requirements

For an of Ethereum Mainnet it is recommended at least 3TB of storage space: 1.8TB state, 400GB temp files (can symlink or mount folder <datadir>/temp to another disk).

  • For an Archive node of Ethereum Mainnet we recommend >=3.5TB storage space: 2.3TiB state (as of March 2024), 643GiB snapshots (can symlink or mount folder <datadir>/snapshots to another disk), 200GB temp files (can symlink or mount folder <datadir>/temp to another disk). Ethereum Mainnet Full node (see ): 1.5TiB not including temp files (April 2024).

  • Gnosis Chain Archive: 1.7TiB (March 2024). Gnosis Chain Full node (see ): 530GiB (March 2024).

  • Polygon Mainnet Archive: 8.5TiB (December 2023). Polygon Mainnet Full node (see ) with --prune.*.older 15768000: 5.1Tb (September 2023). Polygon Mumbai Archive: 1TB. (April 2022).

A locally mounted SSD or NVMe disk is recommended for storage. HDD is not recommended because it will cause Erigon to always stay N blocks behind the chain tip, but not fall behind. In addition, SSD performance degrades when close to full capacity.

When using multiple hard drives, a RAID0 configuration is recommended as it offers high performance and efficient use of space. Raid ZFS is not recommended.

More details on disk storage and .

  • CPU: 64-bit architecture. Number of core and threads is not really important, you don't need a super powerful computer to run Erigon.

  • RAM: ≥ 16GB

  • On Linux: kernel > v4

Tips for Faster Sync

  • Use the machine with low latency (not throughput) disk and RAM for the faster initial sync.

  • Memory optimized nodes are recommended for faster sync. For example, AWS EC2 r5 or r6 series instances.

Software Prerequisites

Erigon works only from command line interface (CLI), so it is advisable to have a good confidence with basic commands.

Please ensure that the following prerequisites are met by checking your operating system tab.

Install Build-essential, Cmake and Git:

sudo apt install build-essential cmake -y
  • Git

    Git is a tool that helps download and manage the Erigon source code. To install Git, visit:

  • Go Programming Language

    • Go (also called Golang) version 1.21 or newer is used to write part of Erigon.

    • It is recommended to have a new Go installation. In case you have a previous version delete the /usr/local/go folder (you will probably need to usesudo), and re-extract the new version in its place.

  • C++ Compiler

    This turns the C++ part of Erigon's code into a program your computer can run. You can use either Clang or GCC.

You can now proceed with Erigon installation.

  • Git

  • Go Programming Language

    • Go (also called Golang) is used to write part of Erigon.

    • It is recommended to have a new Go installation. In case you have a previous version delete the /usr/local/go folder (you will probably need to usesudo), and re-extract the new version in its place.

  • C++ Compiler

    • This turns the C++ part of Erigon's code into a program your computer can run.

    • You can use either GCC or Clang:

    • Choose one and follow its installation guide.

You can now proceed with Erigon installation.

Check the Windows dedicated section.

Before we start, please note that building software from source can be complex. If you're not comfortable with technical tasks, you might want to check installation.

.

Visit for installation instructions.

For Clang follow the instructions at .

For GCC (version 10 or newer):

Git is a tool that helps download and manage the Erigon source code. To install Git, visit:

You need version 1.21 or newer. Visit for installation instructions.

For GCC (version 10 or newer):

For Clang:

Docker
https://git-scm.com/downloads
https://golang.org/doc/install
https://clang.llvm.org/get_started.html
https://gcc.gnu.org/install/index.html
Linux and MacOS
https://git-scm.com/downloads
https://golang.org/doc/install
https://gcc.gnu.org/install/index.html
https://clang.llvm.org/get_started.html
Linux and MacOS
Windows
Pruned Node
Pruned Node
Pruned Node
here
here
​
archive node