💻Baremetal

Author: [ jLeopoldA ]

System Requirements

CPU

OS

RAM

DISK

4 Core

Ubunutu 24.04.1 LTS

16GB

128GB

The Polygon zkEVM archive node has a size of 103GB as of 1/15/2025

Pre-Requisites

CDK-Erigon requires the installation of Go.

Update System

sudo apt update -y && sudo apt upgrade -y && sudo apt autoremove -ye

Set up Firewall

Set Explicit Default Firewall Rules

sudo ufw default deny incoming
sudo ufw default allow outgoing

Allow SSH

sudo ufw allow 22/tcp

Allow Remote RPC Connections with Polygon Zkevm

Allow P2P Connections

Enable Firewall

Check Status / Current Rules of UFW

Install GO

Check for Latest Version of GO

Download the Latest GO Tarball

Extract and Install GO

Set Environment Variables

Check Installation

Set up Polygon zkEVM with Erigon

Clone the Polygon Hermez Repo for Erigon and Build Erigon

Create Directory for DB

Create YAML Configuration

Create Configuration Directory

Paste and modify parameters. Save by entering ctrl+X and Y+ENTER

Launch Erigon Node

Create Systemd Service

Paste the below configuration and save by entering ctrl+X and Y+ENTER

Start CDK-Erigon

View Logs for Debugging

Alternatively, you can view logs minus server name and time and receive the below

Query Polygon zkEVM Node

CDK-Erigon does take time to process blocks before you can fully query it.

References

Last updated

Was this helpful?