Skip to content

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

import { ZoneId } from 'ox/tempo'
 
const zoneId = ZoneId.fromChainId(421_700_026)
26
const chainId = ZoneId.toChainId(26)
421700026

Functions

NameDescription
ZoneId.fromChainIdDerives a zone ID from a zone chain ID.
ZoneId.toChainIdDerives a zone chain ID from a zone ID.