Since the Merge, an Ethereum node is two programs: an execution client (Geth, Nethermind, Besu, Erigon or Reth) that runs the EVM, holds state and serves JSON-RPC, and a consensus client (Lighthouse, Prysm, Teku, Nimbus, Lodestar or Grandine) that follows the proof-of-stake beacon chain and tells the execution client which block is the head. They talk over the authenticated Engine API on port 8551, using a shared JWT secret. To run one: generate the secret, start both clients pointing at it, use checkpoint sync for the consensus client, open the peer-to-peer ports, and wait for both to report synced. On a 4 TB NVMe SSD with 32 GB of RAM, a full node typically syncs within a day.
Why it takes two clients
Before September 2022, a single client such as Geth did everything, including proof-of-work fork choice. The Merge moved consensus to the beacon chain (the background is in proof of work versus proof of stake), and the work was split along that line:
| Execution client (EL) | Consensus client (CL) | |
|---|---|---|
| Job | Execute transactions, store state, maintain the mempool | Follow beacon blocks, attestations and finality, run fork choice |
| Network | devp2p, default port 30303 TCP/UDP | libp2p, e.g. Lighthouse 9000 TCP/UDP plus 9001 UDP (QUIC) |
| API for you | JSON-RPC, 8545 (eth_*) | Beacon API, e.g. Lighthouse 5052 (/eth/v1/...) |
| API between them | Engine API server on 8551 (JWT) | Engine API caller |
| Choices | Geth, Nethermind, Besu, Erigon, Reth | Lighthouse, Prysm, Teku, Nimbus, Lodestar, Grandine |
Each slot, the consensus client receives a beacon block, extracts the execution payload (the transactions, roughly what used to be an Ethereum block) and sends it to the execution client with engine_newPayload. The EL executes it and answers VALID or INVALID. The CL then calls engine_forkchoiceUpdated to set the head, and the safe and finalised blocks. An execution client with no consensus client never moves past its last known head, which is the classic "Geth is stuck at block X" symptom.
You don't need to run a validator to run a node. A validator adds a third process, the validator client, plus 32 ETH or more, as described in how Ethereum validators and staking work. A plain node verifies everything itself and serves your applications.
What hardware do I need?
Treat these as practical minimums for mainnet as of late 2026:
- Storage: a 4 TB NVMe SSD. A pruned full node fits in less, but state and the gas limit keep growing. SATA SSDs and network storage are a common cause of a node that never catches up, because state access is random I/O.
- Memory: 16 GB works for some client pairs; 32 GB is comfortable.
- CPU: a modern 4 to 8 core processor.
- Network: a stable connection without tight data caps, since a node transfers a large amount of data every month.
Two changes have helped disk usage. Clients support partial history expiry: since mid-2025, execution clients can drop pre-Merge block bodies and receipts, which saves several hundred gigabytes. Geth enables it for new nodes with --history.chain postmerge. And since Fusaka (December 2025), PeerDAS means nodes download and custody only a sample of the blob data rollups post, rather than every blob in full; if blobs are new to you, see how EIP-4844 blobs work.
A full node keeps recent state and can verify the chain, but it can't answer eth_call or eth_getBalance at arbitrary old blocks. For that you need an archive node; Erigon and Reth are designed to store archive data far more compactly than older approaches.
Step 1: create the JWT secret
Both clients must read the same 32-byte hex secret. The CL signs each Engine API request with it, so a stranger who can reach port 8551 still can't drive your execution client.
mkdir -p ~/eth/jwt ~/eth/geth ~/eth/lighthouse
openssl rand -hex 32 | tr -d "\n" > ~/eth/jwt/jwt.hex
chmod 600 ~/eth/jwt/jwt.hex
Step 2: start the execution client
With Geth installed from a release binary:
geth --mainnet \
--datadir ~/eth/geth \
--http --http.addr 127.0.0.1 --http.api eth,net,web3 \
--authrpc.addr 127.0.0.1 --authrpc.port 8551 \
--authrpc.jwtsecret ~/eth/jwt/jwt.hex \
--history.chain postmerge
Geth logs warnings that it can't see a beacon client until step 3 is running. That's expected.
Step 3: start the consensus client with checkpoint sync
Checkpoint sync starts the CL from a recent finalised state fetched from a trusted endpoint instead of replaying the beacon chain from 2020. It takes minutes instead of days and protects against long-range attacks on a fresh node.
lighthouse bn \
--network mainnet \
--datadir ~/eth/lighthouse \
--http \
--execution-endpoint http://127.0.0.1:8551 \
--execution-jwt ~/eth/jwt/jwt.hex \
--checkpoint-sync-url https://mainnet.checkpoint.sigp.io
Once the CL has a head, it drives the EL's sync. Geth downloads state with snap sync, then follows the chain block by block.
The same setup with Docker Compose
For a server, containers keep both clients and their restart policies in one file. Pin exact release tags in production rather than using moving tags.
services:
geth:
image: ethereum/client-go:stable
restart: unless-stopped
stop_grace_period: 5m
command:
- --mainnet
- --datadir=/data
- --http
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.api=eth,net,web3
- --authrpc.addr=0.0.0.0
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/secrets/jwt.hex
- --history.chain=postmerge
ports:
- "30303:30303/tcp"
- "30303:30303/udp"
- "127.0.0.1:8545:8545"
volumes:
- ./geth:/data
- ./jwt:/secrets:ro
lighthouse:
image: sigp/lighthouse:latest
restart: unless-stopped
command:
- lighthouse
- bn
- --network=mainnet
- --datadir=/data
- --http
- --http-address=0.0.0.0
- --execution-endpoint=http://geth:8551
- --execution-jwt=/secrets/jwt.hex
- --checkpoint-sync-url=https://mainnet.checkpoint.sigp.io
ports:
- "9000:9000/tcp"
- "9000:9000/udp"
- "9001:9001/udp"
- "127.0.0.1:5052:5052"
volumes:
- ./lighthouse:/data
- ./jwt:/secrets:ro
Port 8551 is never published to the host; only the Lighthouse container reaches it over the Compose network. The RPC and Beacon API are bound to 127.0.0.1. The long stop_grace_period gives Geth time to flush state on shutdown; killing it abruptly can force a lengthy recovery.
How do I know it's synced?
Ask both sides:
# Execution client: returns false when synced, or an object with progress
curl -s -X POST http://127.0.0.1:8545 -H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"eth_syncing","params":[]}'
# Consensus client: look for "is_syncing": false, "is_optimistic": false, "el_offline": false
curl -s http://127.0.0.1:5052/eth/v1/node/syncing
# Finalised block, to compare with a block explorer or a second provider
cast block finalized --rpc-url http://127.0.0.1:8545 --field number
is_optimistic: true means the CL is following blocks the EL hasn't validated yet, usually because the EL is still syncing. Wait until it's false before trusting the node.
It's also worth verifying the checkpoint you started from. Fetch /eth/v1/beacon/headers/finalized from your node and compare the block root with at least one independent source, such as a different checkpoint provider or a block explorer.
Using the node from your code
Point your tools at http://127.0.0.1:8545. The same ethers or viem code works as with a hosted provider (see reading contracts and sending transactions with ethers.js v6), with no rate limits and no third party seeing your queries. The safe and finalized block tags come from your own consensus client, which matters when you handle reorgs in a backend. If you're running a heavy indexer, a local node is often what makes a custom indexer fast enough, since eth_getLogs over large ranges is where hosted providers throttle hardest.
Common problems
- "Beacon client online, but never received consensus updates" in Geth: the CL isn't running, isn't using the same JWT file, or points at the wrong host or port.
401 Unauthorizedor JWT errors: the two clients read different secret files, or the file has a trailing newline or wrong permissions inside the container.- Few peers and slow sync: ports
30303and the CL's P2P ports aren't forwarded or allowed through the firewall. Both clients still work with outbound peers only, but more slowly. - Sync never catches up: almost always disk I/O. Check with
iostat -x 5; sustained highawaiton the data disk means the disk can't keep up. - Node stops following after a fork: you missed a client release before a scheduled network upgrade. Fusaka required upgrading both clients, and the next fork, Glamsterdam, was going through testnets at the time of writing. Subscribe to your clients' release announcements.
Choosing clients and keeping it secure
Pick a pair you're comfortable operating, and favour minority clients. If a client with more than a third of the network has a consensus bug, finality can stall; with more than two thirds, a bad chain could be finalised. For a plain node the personal risk is small, but diversity keeps the network safer.
Keep the Engine API on localhost or a private network, never expose 8545 publicly without an authenticating proxy, and run clients as an unprivileged user. Update promptly when a release is marked as required for a fork.
Checklist
- 4 TB NVMe SSD, 16 to 32 GB RAM, unmetered connection.
- One execution client and one consensus client, preferably minority clients.
- Shared JWT secret file; Engine API on
8551, not exposed. - Checkpoint sync for the CL, and verify the finalised root against a second source.
- Open P2P ports:
30303TCP/UDP for the EL, the CL's ports (Lighthouse9000TCP/UDP,9001UDP). --history.chain postmerge(or your client's equivalent) to skip pre-Merge history.- Synced when
eth_syncingisfalseand the beacon API reportsis_syncing: falseandis_optimistic: false. - Graceful shutdowns, monitoring for disk space, and client updates before every fork.
Get the weekly commit
New blockchain deep dives every week.