Skip to content
LogoLogo

getL1ChainId

Returns the Chain Id of underlying L1 network.

Usage

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

Returns

Hex

L1 Chain ID.