# ZoneId

Zone ID utilities for converting between zone IDs and zone chain IDs.

Zone chain IDs are deterministically derived from zone IDs using the formula
`421_700_000 + zoneId`. This module provides helpers to convert between them.

## Examples

```ts twoslash
import { ZoneId } from 'ox/tempo'

const zoneId = ZoneId.fromChainId(421_700_026)
// @log: 26

const chainId = ZoneId.toChainId(26)
// @log: 421700026
```

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`ZoneId.fromChainId`](/tempo/reference/ZoneId/fromChainId) | Derives a zone ID from a zone chain ID. |
| [`ZoneId.toChainId`](/tempo/reference/ZoneId/toChainId) | Derives a zone chain ID from a zone ID. |
