How to run an Ethereum node
Last updated
Was this helpful?
Last updated
Was this helpful?
Follow the :
For an of Ethereum mainnet: 3.5 TB
For a of Holesky testnet : 190 GB
For MacOS and Linux, run the following commands to build the latest Erigon version from source:
This should create the binary at ./build/bin/erigon
.
Alongside Erigon you must use a like Prysm or Lighthouse. This will also allow you to access the Ethereum blockchain directly and give you the possibility to stake your GNO and do .
Start Erigon
Install and run Prysm:
In order to communicate with Erigon the execution endpoint <erigon address>:8551
must be specified, where <erigon address>
is either //localhost
or the IP address of the device running Erigon.
If you want to store Erigon files in a non-default location, add flag --datadir=<your_data_dir>
Default data directory is /home/admin/.local/share/erigon.
Default chain is --chain=mainnet
, add the flag:
--chain=sepolia
for Sepolia testnet;
--chain=holesky
for Holesky testnet.
To increase download speed add --torrent.download.rate=512mb
(default is 16mb)
Prysm must fully synchronize before Erigon can start syncing, since Erigon requires an existing target head to sync to. The quickest way to get Prysm synced is to use a public checkpoint synchronization endpoint from the list at .
Prysm must point to the automatically created by Erigon in the directory (in the below example the default data directory is used).
If your Prysm is on a different device, add --authrpc.addr 0.0.0.0
( listens on localhost by default) as well as --authrpc.vhosts <CL host>
.
Because Erigon needs a target head in order to sync, Lighthouse must be synced before Erigon may synchronize. The fastest way to synchronize Lighthouse is to use one of the many public checkpoint synchronization endpoints at .
Lighthouse must point to the automatically created by Erigon in the directory (in the below example the default data directory is used).
--prune=hrtc
to run a with latest 90'000 blocks instead of an . If you change your mind remember to delete the --datadir
folder content.
--http.addr="0.0.0.0" --http.api=eth,web3,net,debug,trace,txpool
to use and e.g. be able to connect your .
To stop the Erigon node you can use the CTRL+C
command. Additional flags can be added to the node with several .