Basic Usage
Basic Usage
All-in-One Client
The all-in-one client is the preferred option for most users:
./build/bin/erigonThis CLI command allows you to run an Ethereum full node where every process is integrated and no special configuration is needed.
The default Consensus Layer utilized is Caplin, the Erigon flagship embedded CL.
Basic Configuration
Default data directory is
/home/usr/.local/share/erigon. If you want to store Erigon files in a non-default location, add flag:--datadir=<your_data_dir>Based on the type of node you want to run you can add
--prune.mode=archiveto run a archive node,--prune.mode=fullfor a full node or--prune.mode=minimalfor a minimal node. The default node is full node.--chain=mainnet, add the flag--chain=sepoliafor Sepolia testnet or--chain=holeskyfor Holesky testnet.--http.addr="0.0.0.0" --http.api=eth,web3,net,debug,trace,txpoolto use RPC and e.g. be able to connect your wallet.To increase download speed add
--torrent.download.rate=512mb(default is 16mb).
To stop the Erigon node you can use the CTRL+C command.
Additional flags can be added to configure the node with several options.
Testnets
If you would like to give Erigon a try, but do not have spare 2TB on your drive, a good option is to start syncing one of the public testnets, Holesky, adding the option --chain=holesky and using the default Consensus Layer, Caplin. You can also had the flag --prune.mode=minimal to have a node that is syncing fast while taking not so much disk space:
Help
To learn about the available commands, open your terminal in your Erigon 3 installation directory and run:
This command will display a list of convenience commands available in the Makefile, along with their descriptions.
For example, from your Erigon 3 installation directory, run:
This will execute the clean target in the Makefile, which cleans the go cache, build directory, and libmdbx db directory.
Last updated
Was this helpful?