Try it Live
Run Hardfork examples in the interactive playground
Conceptual Guide - For API reference and method documentation, see Hardfork API.
What Are Hardforks?
Hardforks are coordinated protocol changes that require all nodes to upgrade. Unlike soft forks (backward-compatible), hardforks break compatibility with older node software - nodes that don’t upgrade cannot validate new blocks. Key characteristics:- Backwards-incompatible - Old nodes reject new blocks
- Network-wide activation - All validators must upgrade
- Block number or timestamp - Activation at specific height or time
- EIP bundling - Multiple Ethereum Improvement Proposals (EIPs) per fork
Why Hardforks Are Needed
Hardforks enable protocol evolution without fragmenting the network:- Bug fixes - Fix security vulnerabilities (DAO fork, Spurious Dragon)
- Performance improvements - Optimize gas costs, add new opcodes
- Feature additions - New transaction types (EIP-1559, EIP-4844), consensus changes (The Merge)
- Security hardening - Remove exploitable edge cases, strengthen validation
Timeline of Major Hardforks
- Chronological
- Feature View
Feature Activation
Hardforks activate at predetermined block numbers (pre-Merge) or timestamps (post-Merge):Checking Hardfork Support
Use version comparison to gate features based on hardfork:Comparing Hardfork Features
Compare feature availability across hardforks:Hardfork-Dependent Features
Common features tied to specific hardforks:EIP-1559 Base Fee (London)
EIP-3855 PUSH0 Opcode (Shanghai)
EIP-4844 Blob Transactions (Cancun)
EIP-1153 Transient Storage (Cancun)
Resources
- ethereum.org/history - Official hardfork timeline and rationale
- EIP List - All Ethereum Improvement Proposals
- EIP-1559 - Base fee mechanism (London)
- EIP-4844 - Blob transactions (Cancun)
- EIP-3855 - PUSH0 opcode (Shanghai)
- EIP-1153 - Transient storage (Cancun)
Next Steps
- Overview - Type definition and API reference
- Hardforks - Complete hardfork timeline
- Features - EIP feature detection methods
- Comparisons - Version comparison methods

