> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Hardfork.gte

> Check if hardfork is greater than or equal to target (alias for isAtLeast)

<Card title="Try it Live" icon="play" href="https://playground.tevm.sh?example=primitives/hardfork.ts">
  Run Hardfork examples in the interactive playground
</Card>

<Tabs />

## Operator-Style API

`gte` mimics the `>=` operator for clearer code:

```typescript theme={null}
import { CANCUN, LONDON } from 'tevm'

// Operator-style (reads like >= operator)
if (CANCUN.gte(LONDON)) {
  // ...
}

// Equivalent semantic form
if (CANCUN.isAtLeast(LONDON)) {
  // ...
}
```

## Usage Patterns

### Feature Gating

```typescript theme={null}
import { Hardfork, LONDON } from 'tevm'

const fork = Hardfork(config.hardfork)

if (fork.gte(LONDON)) {
  // EIP-1559 available
}
```

### Network Configuration

```typescript theme={null}
import { Hardfork, SHANGHAI } from 'tevm'

function validateVersion(fork: BrandedHardfork) {
  if (!fork.gte(SHANGHAI)) {
    throw new Error("Requires Shanghai or later")
  }
}
```

## Chronological Ordering

Uses chronological deployment order:

```
FRONTIER (0) < HOMESTEAD (1) < ... < CANCUN (16) < PRAGUE (17)
```

## Performance

**Time Complexity:** O(1) - Array index comparison

**Typical Time:** \~10-20ns per call

## See Also

* [isAtLeast](/primitives/hardfork/is-at-least) - Semantic equivalent
* [gt](/primitives/hardfork/gt) - Strictly greater than
* [lte](/primitives/hardfork/lte) - Less than or equal
