Skip to content

getChainId

Returns the chain ID associated with the bundler.

Usage

example.ts
import { nexusClient } from "./nexusClient"
 
// Get chain ID
const chainId = await nexusClient.getChainId()
// Returns: 84532 (for Base Sepolia)

Returns

number

Returns the current chain ID that the bundler is operating on.

Related Methods