Skip to content
LogoLogo

zone.getPortalInfo

Gets metadata and configuration from a zone portal. This action uses a parent Tempo chain client.

Usage

import {  } from './viem.config'
 
const  = await ..({
  : 7,
})
 
.('Admin:', .)
.('Sequencers:', .)
.('Enabled tokens:', .)

The action reads the fixed portal fields with Promise.all, then reads the indexed sequencers and enabled tokens in parallel.

Return Type

type ReturnType = {
  admin: Address
  enabledTokens: readonly Address[]
  messenger: Address
  pauseExpiry: bigint
  paused: boolean
  pendingAdmin: Address
  sequencers: readonly Address[]
  sequencerSetVersion: bigint
  sequencerThreshold: number
  verifier: Address
}

Parameters

zoneId

  • Type: number

Zone ID whose portal contains the metadata.

portalAddress (optional)

  • Type: Address
  • Default: Resolved from the client chain and zoneId.

Explicit zone portal address.