> For the complete documentation index, see [llms.txt](https://nazeehs-org.gitbook.io/comp-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nazeehs-org.gitbook.io/comp-kit/hooks/usechain.md).

# useChain

This hook provides data regarding the current user network and all the supported chains the user has passed to the `KitProvider` wrapper.

### Usage

```tsx
import { useChain } from '@nazeeh2000/comp-kit'

const Comp = () => {
   const { currentChain } = useChain();
  
  return (
  // Your component
  )
}
```

### Return values

```tsx
const {
    currentChain,
    supportedChains // returns an array of Chains of type Chain[]
} = useChain()
```
