How Ethereum's Architecture Works: Layers and Clients
Ethereum splits its work into an execution layer, a consensus layer and a networking layer. Here is how the pieces fit and where layer 2 networks attach.
On this page
Short answer
Ethereum's architecture splits the chain into an execution layer that runs code and updates state, a consensus layer that orders blocks and confirms them, and a networking layer that moves messages between nodes. Execution and consensus run as paired clients that check each other's work, and layer 2 networks settle back to the main chain as their shared record.
What is Ethereum's architecture?
Ethereum's architecture is the set of layers, clients and data stores that let thousands of independent computers agree on one shared state. It splits the work into an execution layer that runs code and updates state, a consensus layer that orders blocks and agrees on them, and a networking layer that moves messages between the computers that run the chain.
The split matters because each layer can change on its own. The consensus layer moved from proof of work to proof of stake without changing how smart contracts run, and new data formats for layer 2 networks were added without changing the virtual machine. Teams that build on Ethereum work with this split every day, whether they run a node, read chain data or send transactions.
This article maps the pieces: what each layer does, how the two kinds of clients work together, where state lives, how blocks and blobs carry data, and where layer 2 networks fit. The goal is a working picture you can use when you choose infrastructure, debug a stuck transaction or plan an upgrade.
What does the execution layer do?
The execution layer runs the Ethereum Virtual Machine (EVM), processes transactions and keeps the current state: every account balance, every contract's storage and every token record. When a transaction arrives, the execution layer checks the signature, runs the code it calls and updates the state to match the result.
Each unit of work costs gas, and the sender pays for the gas the transaction uses. Gas keeps the network safe: a program that loops forever runs out of gas and stops, so no single transaction can hold the chain hostage. The fee market sets the price of gas from demand, which is why busy hours cost more than quiet ones.
| Execution layer part | What it does |
|---|---|
| Ethereum Virtual Machine | Runs contract code, one instruction at a time |
| Accounts | Hold balances, nonces, code and storage |
| State | The current record of every account after each block |
| Gas | Prices each unit of work and stops runaway programs |
The execution layer does not decide which block is correct. It only runs the transactions in the block it is given and reports the resulting state. Ordering and agreement belong to the consensus layer, which is why the two layers run as separate programs that talk to each other. The Ethereum guide explains the basics of how transactions move through the chain.
What does the consensus layer do?
The consensus layer is the Beacon Chain: the part of Ethereum that orders blocks, picks who proposes them and confirms them as final. Validators lock up ether as a deposit, take turns proposing blocks in 12-second slots, and vote on the blocks other validators propose.
Finality is the key property. Once a block is final, it cannot be reverted without a large share of validators breaking the rules and losing their deposits. Finality usually arrives after two epochs, and each epoch holds 32 slots, so a payment is final about 13 minutes after it is included. Applications that move real value wait for finality before treating a payment as settled.
The consensus layer also handles staking: who is a validator, how much each one has deposited and what happens when one misbehaves. A validator that goes offline loses a small amount over time, and one that signs two conflicting blocks loses part of its deposit. Those penalties are what make agreement cheap to enforce. The Ethereum 2.0 guide covers the move to proof of stake in detail.
How do execution and consensus clients work together?
Ethereum runs on pairs of programs: an execution client and a consensus client, joined by a local interface called the Engine API. The consensus client receives blocks from the network and hands them to the execution client, which runs the transactions and returns the resulting state root for checking.
| Execution client | Common consensus client pair |
|---|---|
| Geth | Lighthouse or Prysm |
| Nethermind | Lighthouse or Teku |
| Besu | Teku or Lighthouse |
| Reth | Lighthouse or Nimbus |
The pair must agree on the same chain or the node stops following it. If the execution client reports a different state root than the block claims, the consensus client refuses the block. That check is what keeps a bad execution result from spreading across the network.
Teams choose a pair for their needs: some clients are built for speed, others for low memory or for archive data. Running two different pairs, one as a backup, is common practice for services that cannot afford downtime.
A node operator who runs only one client of each type still has a working node, but a bug in either program can take it offline. The implementation guide shows how an app connects to a node pair.
How is Ethereum's state stored?
Ethereum's state is a record of every account: externally owned accounts controlled by a private key, and contract accounts controlled by code. Each account holds a balance, a nonce that counts its transactions, a code hash and a storage root that points to its own data.
The state is stored in a Merkle Patricia trie, a tree structure that lets any node prove a single account's contents without holding the whole database. Each block header carries the root hash of the state after that block, so a light client can check one balance with a short proof instead of downloading everything.
State keeps growing, and that growth is a real cost. Every new account and every new storage slot adds data that full nodes must keep, which is why the chain charges more for writing new storage than for changing existing values. Archive nodes keep every past state; most nodes keep only the current one and the recent history they need to serve requests.
How do blocks and blobs carry data?
A block carries a list of transactions, the state root after those transactions and a few fields that link it to the block before it. Blocks arrive about every 12 seconds, and each one is proposed by one validator and voted on by the rest.
| What a block carries | How long it lasts |
|---|---|
| Transactions | Permanent, part of the chain history |
| State root | Permanent, proves the state after the block |
| Parent hash | Permanent, links the block to the one before it |
| Blob data | Temporary, deleted after a few weeks |
Blobs are a newer kind of block data, added for layer 2 networks. A blob holds a large chunk of data that layer 2 networks post to Ethereum, and the chain checks that the data is available without keeping it forever. Blobs are deleted after a few weeks, which keeps node storage down while still giving layer 2 networks a place to anchor their data.
The split between permanent state and temporary blob data is deliberate. State must last, because accounts and contracts depend on it. Blob data only needs to last long enough for anyone to check it and raise a challenge, so the chain can discard it and stay lean. The layer 2 trends guide explains how blobs changed the cost of running a rollup.
How do layer 2 networks fit the architecture?
Layer 2 networks run transactions off the main chain and settle back to it. They process their own transactions, compress the results and post them to Ethereum as blob data, so the main chain acts as the shared record that everyone can check.
The fit works because the layers already divide the work. A layer 2 network runs its own execution environment, often its own virtual machine, and uses Ethereum's consensus layer for ordering and finality. If a layer 2 network stops publishing data, users can still prove what they own from the data already posted.
For builders, the choice is between building directly on the main chain or on a layer 2 network. The main chain gives the strongest guarantees and the widest tooling, while a layer 2 network gives lower fees and faster confirmations at the cost of an extra trust step: the bridge and the sequencer that orders its transactions. The Ethereum best practices guide covers how to keep costs down on either path.
Example (hypothetical): a payments app waits for finality
Example (hypothetical): a payments app lets shops accept ether and releases goods once the payment is final. The team works out the wait: finality takes two epochs, each epoch holds 32 slots, and each slot lasts 12 seconds, so 2 times 32 times 12 equals 768 seconds, about 13 minutes.
The team builds the wait into the checkout flow. A payment shows as received after one block, about 12 seconds, and as settled after finality, about 13 minutes. Goods that cost little ship on receipt; goods that cost a lot wait for settlement. The shop sees fewer disputes, because the status on screen matches what the chain guarantees.
The team also runs its own node pair so it can check finality itself instead of trusting a third party's status page. The node costs a server and some upkeep, but the team can prove every payment from its own copy of the chain, which matters when a customer asks why a payment is still pending.
What are the common mistakes?
The most common Ethereum architecture mistakes are treating the chain as one program, skipping finality, and trusting a single node or provider for everything.
- One program, not layers. Teams debug a stuck transaction by restarting the execution client when the consensus client is the one behind. Check both halves before you restart either.
- Treating one confirmation as final. A block can still be reverted before finality. Wait for finality on payments that matter.
- One node, one provider. A single node is a single point of failure. Run a backup pair or a second provider for anything that serves users.
- Ignoring state growth. Contracts that write new storage on every call get more expensive as state grows. Reuse storage slots where you can.
- Assuming layer 2 is the main chain. A layer 2 network has its own sequencer and bridge. Check both before you promise main-chain guarantees.
Key takeaways
- Ethereum splits into execution, consensus and networking layers that change independently
- The execution layer runs the EVM and keeps state; the consensus layer orders blocks and confirms them
- Execution and consensus clients run as a pair and check each other's work through the Engine API
- State lives in a Merkle Patricia trie; blob data is temporary and deleted after a few weeks
- Finality takes about 13 minutes, and payments that matter should wait for it
Frequently asked questions
What is the difference between the execution and consensus layers?
The execution layer runs transactions and updates state, while the consensus layer orders blocks and confirms them as final. They run as separate programs, an execution client and a consensus client, joined by the Engine API, so each layer can be upgraded without changing the other.
What is the Ethereum Virtual Machine?
The Ethereum Virtual Machine, or EVM, is the program that runs smart contract code. Every node runs the same code on the same input and must reach the same result, which is how the network agrees on state. Gas prices each unit of work the EVM performs.
How long does finality take on Ethereum?
Finality usually arrives after two epochs, and each epoch holds 32 slots of 12 seconds, so about 13 minutes after a transaction is included. Before finality, a block can still be reverted, so applications that move real value wait for finality before treating a payment as settled.
What is a Merkle Patricia trie?
It is the tree structure Ethereum uses to store state. It lets any node prove the contents of a single account with a short proof, without holding the whole database. Each block header carries the root hash of the state after that block.
What are blobs used for?
Blobs hold large chunks of data that layer 2 networks post to Ethereum, so the main chain can check the data is available. Blobs are deleted after a few weeks, which keeps node storage down while still giving layer 2 networks a place to anchor their data.
Do I need to run my own Ethereum node?
No. Many teams read chain data and send transactions through a node provider. Running your own node pair gives you independent verification of finality and state, which matters for payments and for services that cannot trust a third party's status page.