> ## 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.gt

> Check if hardfork is strictly greater than target (alias for isAfter)

<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

`gt` mimics the `>` operator for clearer code:

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

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

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

## Usage Patterns

### Version Detection

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

const fork = Hardfork(config.hardfork)

if (fork.gt(CANCUN)) {
  console.warn("Running unknown post-Cancun hardfork")
}
```

### Network Configuration

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

function isExperimental(fork: BrandedHardfork): boolean {
  return fork.gt(PRAGUE)
}
```

## Chronological Ordering

Uses chronological deployment order:

```
LONDON (11) < MERGE (14) < SHANGHAI (15) < CANCUN (16) < PRAGUE (17)
```

## Strict Inequality

Returns false when versions are equal:

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

CANCUN.gt(CANCUN)  // false - not strictly greater
```

## Performance

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

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

## See Also

* [isAfter](/primitives/hardfork/is-after) - Semantic equivalent
* [gte](/primitives/hardfork/gte) - Greater than or equal
* [lt](/primitives/hardfork/lt) - Strictly less than
