Skip to content

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

Named
import { ZoneId } from 'ox/tempo'

Examples

import { ZoneId } from 'ox/tempo'
 
const chainId = ZoneId.toChainId(6)
4217000006

Definition

function toChainId(
  zoneId: number,
): number

Source: src/tempo/ZoneId.ts

Parameters

zoneId

  • Type: number

The zone ID.

Return Type

The zone chain ID.

number