Skip to main content

Try it Live

Run Hardfork examples in the interactive playground

    Chronological Order

    Returns hardforks in deployment order:

    Usage Patterns

    UI Selector

    Build hardfork selector dropdown:

    Configuration Validation

    Validate user input:

    Timeline Generation

    Generate hardfork timeline:

    Feature Matrix

    Build feature availability table:

    CLI Tools

    Display available hardforks:

    Network Configuration

    Get supported versions:

    Return Format

    Canonical Names:
    • Returns canonical names (not aliases)
    • “merge” not “paris”
    • “petersburg” not “constantinoplefix”
    Lowercase:
    • All names lowercase
    • Consistent formatting
    Complete List:
    • Includes all hardforks (historical and future)
    • 19 total hardforks as of Osaka

    Complete List

    Performance

    Time Complexity: O(n) where n = number of hardforks (19) Typical Time: ~100-200ns (returns pre-allocated array)

    See Also