Skip to main content

Function: getChainId()

getChainId(chainNameOrId): number

Get the default chain ID for a given chain name.

Parameters

chainNameOrId: number | keyof TablelandNetworkConfig

The requested chain name or ID.

Returns

number

A number representing the default chain ID of the requested chain.

Source

@tableland/sdk/src/helpers/chains.ts:126