Skip to content

getL1ChainId

Returns the Chain Id of underlying L1 network.

Usage

example.ts
import { client } from './config'
 
const chainId = await client.getL1ChainId();

Returns

Hex

L1 Chain ID.