Protocol Kit Reference
Safe Configuration
getChainId

getChainId

Returns the chain ID of the connected network.

Usage


_10
import { protocolKit } from './setup.ts'
_10
_10
const chainId = await protocolKit.getChainId()

Returns

Promise<bigint>

The chain ID of the connected network.

Was this page helpful?