Getting started

Installing Erigon

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 archive node 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 Pruned Node): 1.5TiB not including temp files (April 2024).

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

  • Polygon Mainnet Archive: 8.5TiB (December 2023). Polygon Mainnet Full node (see Pruned Node) 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.

More details on disk storage here and here.

  • 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

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 Docker installation.

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:

    https://git-scm.com/downloads.

  • 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.

    • Visit https://golang.org/doc/install for installation instructions.

  • 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.

Last updated

Was this helpful?