# ZoneId.toChainId

Derives a zone chain ID from a zone ID.

Zone chain IDs follow the formula `4_217_000_000 + zoneId`, so zone ID `6` corresponds to chain ID `4217000006`.

## Imports

:::code-group
```ts [Named]
import { ZoneId } from 'ox/tempo'
```

```ts [Entrypoint]
import * as ZoneId from 'ox/tempo/ZoneId'
```
:::

## Examples

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

const chainId = ZoneId.toChainId(6)
// @log: 4217000006
```

## Definition

```ts
function toChainId(
  zoneId: number,
): number
```

**Source:** [src/tempo/ZoneId.ts](https://github.com/wevm/ox/blob/main/src/tempo/ZoneId.ts#L59)

## Parameters

### zoneId

* **Type:** `number`

The zone ID.

## Return Type

The zone chain ID.

`number`
