> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://sdk.railnet.org/api/mcp` to find what you need.

# isSupportedChain

Type guard that checks whether a chain ID is supported. Narrows the type to `SupportedChainId` when used in a conditional.

## Import

```ts
import { isSupportedChain } from '@railnetorg/railnet-sdk'
```

## Usage

```ts
import { isSupportedChain, getAddresses } from '@railnetorg/railnet-sdk'

const chainId: number = 8453

if (isSupportedChain(chainId)) {
  const addresses = getAddresses(chainId)
}
```

## Returns

`chainId is SupportedChainId`

Returns `true` if the chain ID has protocol addresses configured, `false` otherwise.

## Parameters

### chainId

* **Type:** `number`

The chain ID to check.
