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.
Erigon 2 (Production Ready)
Our plan is to make v2.60.x the final major release based on Erigon 2. This version is stable and recommended for production environments. While there may be patch releases to address critical issues, Erigon 2 will remain the go-to choice for production deployments.
Erigon 3 (Experimental)
After extensive research and development, Erigon 3 is now in alpha release but it's highly experimental and not recommended for production environments.
Read the version notes carefully before proceeding.
Learn more about Erigon 3 here; full documentation for Erigon 3 will be available soon.
Our primary focus going forward will be on developing and improving Erigon 3, while maintaining stability for Erigon 2 users.
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.
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 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
orr6
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:
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 or paste this in your terminal:
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.
For Clang follow the instructions at https://clang.llvm.org/get_started.html, or place your terminal to directory where you want to install Clang and copy-paste this code:
For GCC (version 10 or newer): https://gcc.gnu.org/install/index.html
You can now proceed with Erigon installation.
Last updated