🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Ethereum Architecture

Ethereum Deep DiveđŸŸĸ Free Lesson

Ethereum Architecture

Ethereum block structure, account model, transaction lifecycle, EIP process, Ethereum roadmap, and danksharding.

Overview

Ethereum extended Bitcoin's blockchain concept with a Turing-complete virtual machine and account-based state.

Ethereum Block Structure

Ethereum Block StructureBlock Header (568 bytes)parentHash (32B)coinbase (20B)stateRoot (32B)txRoot (32B)receiptsRoot (32B)logsBloom (256B)difficulty (var)gasLimit (var)gasUsed (var)timestamp (8B)Transaction List (RLP encoded)Uncle Blocks (PoW only, deprecated in PoS)Post-Merge: Blocks contain only 1 transaction list, no unclesMax Block Size: ~12.5M gas | ~15,000 TPS theoretical

Account Model

Ethereum uses an account-based model instead of UTXO.

Account Types

TypeAddress PrefixCodePurpose
EOA (Externally Owned)0x...No codeUser wallets
Contract0x...Has codeSmart contracts
Beacon Validator0x...StakingConsensus participation

Account State

{
  "balance": "1000000000000000000",
  "nonce": 42,
  "storageRoot": "0x...",
  "codeHash": "0x..."
}

State Trie

Merkle Patricia Trie (State)Root NodeBranch NodeExtension NodeLeaf: Acct ALeaf: Acct BLeaf: Contract CState Root: keccak256(RLP(accounts, balances, nonces, storage))

Transaction Lifecycle

Transaction Lifecycle1. Create TXSign with key2. BroadcastETH node3. MempoolTX pool4. Include in BlockValidator proposes5. Finalize2 epochs (~12.8 min)Transaction Types (Post-EIP-1559)Type 0: Legacy (pre-EIP-1559)Type 1: Access List (EIP-2930)Type 2: Dynamic Fee (EIP-1559)Type 3: Blob Transactions (EIP-4844, Dencun)Max Priority Fee: Tip to validator | Base Fee: Burned | Max Fee: Cap

Transaction Structure

{
  "type": 2,
  "chainId": 1,
  "nonce": 42,
  "to": "0x...",
  "value": "1000000000000000000",
  "data": "0x",
  "gasLimit": 21000,
  "maxPriorityFeePerGas": "2000000000",
  "maxFeePerGas": "100000000000",
  "accessList": [],
  "v": 27,
  "r": "0x...",
  "s": "0x..."
}

EIP Process (Ethereum Improvement Proposals)

StageNameDescription
DraftIdea submittedInitial proposal
ReviewCommunity reviewDiscussion period
Last CallFinal review14-day period
FinalAcceptedIncluded in fork
StagnantInactive6 months no updates
WithdrawnRejectedAuthor withdrew
LivingActiveContinuously updated

Key EIPs

EIPNameYearImpact
EIP-20ERC-20 Token2015Token standard
EIP-721ERC-721 NFT2018NFT standard
EIP-1559Fee Market2021Base fee burn
EIP-2930Access Lists2021Gas optimization
EIP-3529Refund Reduction2021Reduced refunds
EIP-4337Account Abstraction2023Smart wallets
EIP-4844Proto-Danksharding2024L2 data blobs
EIP-7002Validator Exits2024Withdrawal requests

Ethereum Roadmap

Ethereum Roadmap (2024-2028)The Merge ✓PoS, -99.95% energySurge ✓EIP-4844, Proto-DankScourgeMEV mitigationVergeVerkle treesPurgeHistory expiryRoadmap DetailsMerge (2022): PoS consensus, ~90K validators, energy reductionSurge (2023-24): EIP-4844 (blobs), L2 scaling to 100K TPSScourge (2024-25): Censorship-resistant MEV, PBS improvementsVerge (2025-26): Verkle trees, statelessness, light clientsPurge (2026+): History expiry, state bloat reduction, EVM simplification

Danksharding (Proto-Danksharding)

EIP-4844 introduced blob transactions for L2 data availability.

Blob Transaction Structure

python
# Blob transaction (Type 3)
blob_tx = {
    "type": 3,
    "max_fee_per_blob_gas": 1000000000,  # 1 Gwei
    "blob_versioned_hashes": [
        "0x01..."  # KZG commitment hash
    ],
    # Standard fields
    "to": "0x...",
    "value": 0,
    "data": "0x...",
    "gas_limit": 100000
}

# Each blob: 128 KB, ~400 KB per block (3-6 blobs)
# Blobs stored for ~18 days, then pruned

Sharding Progress

PhaseNameStatusImpact
Phase 0Beacon ChainDonePoS foundation
Phase 1Shard ChainsReplacedData shards (Danksharding)
Phase 1.5MergeDoneExecution on PoS
Phase 2Full ShardingFutureFull execution shards
Proto-DankEIP-4844DoneL2 data blobs

Gas Mechanics

Gas Price Formula (Post-EIP-1559)

Base Fee Calculation

  • If block is > 50% full: Base fee increases
  • If block is < 50% full: Base fee decreases
  • Max change per block: Âą12.5%

Trade-offs

PoS vs PoW (Ethereum)

MetricPoW (Before)PoS (After)
Energy~100 TWh/year~0.01 TWh/year
HardwareASICs, GPUsConsumer hardware
DecentralizationMining poolsStaking pools
FinalityProbabilisticDeterministic (~15 min)
Validator CostHigh32 ETH minimum

L1 vs L2 Scaling

ApproachTPSCostSecurity
Ethereum L1~15$1-50Full
Optimistic Rollups~2,000$0.01-0.10Inherited
ZK Rollups~10,000$0.001-0.01Cryptographic
Validium~9,000$0.001Weak

Real-World Examples

Ethereum Gas Costs (2024)

OperationGas UsedCost (10 Gwei)Cost (30 Gwei)
ETH Transfer21,0001.26
ERC-20 Transfer65,0003.90
Uniswap Swap150,0009.00
NFT Mint100,0006.00
Contract Deploy500,00030.00

Network Statistics (2024)

MetricValue
Active Validators~900,000
Total Staked~32M ETH
Avg Block Time12 seconds
TPS (L1)~15
TPS (L2 aggregate)~5,000
Daily Transactions~1.1M

Interview Questions

  1. Why did Ethereum move from UTXO to an account model?

    • Answer: Account model enables simpler smart contract development, stateful execution, and easier gas accounting. It reduces the complexity of tracking unspent outputs.
  2. How does EIP-1559 improve fee estimation?

    • Answer: It provides a predictable base fee that adjusts algorithmically, users set max fee caps, and priority fees tip validators. This eliminates first-price auction inefficiency.
  3. What is the purpose of blob transactions in Proto-Danksharding?

    • Answer: Blobs provide cheap, temporary data availability for L2 rollups without burdening L1 execution. Data is pruned after ~18 days, keeping node requirements manageable.

Quiz Questions

  1. What replaced the uncle mechanism after The Merge?

    • A) Sharding
    • B) Nothing (no uncles in PoS) ✓
    • C) Checkpoints
    • D) DAGs
  2. How often does Ethereum's base fee adjust?

    • A) Every transaction
    • B) Every block ✓
    • C) Every epoch
    • D) Every day
  3. What is the minimum stake to become an Ethereum validator?

    • A) 1 ETH
    • B) 16 ETH
    • C) 32 ETH ✓
    • D) 64 ETH

Practice

  1. Build a transaction simulator that estimates gas costs
  2. Implement a simple account state trie in Python
  3. Create a gas price tracker using Ethereum JSON-RPC
  4. Analyze the state growth of Ethereum over the last year
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-09-22

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Related Tutorials

Content with similar topics across other courses

Need Expert Blockchain Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement