Skip to content

getChainId

Returns the chain ID associated with the bundler

Usage

example.ts
import { bundlerClient } from './client'
 
const chainId = await bundlerClient.getChainId() 
1

Returns

number

The current chain ID.