# getChain | @account-kit/core

> Overview of the getChain function from @account-kit/core

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function getChain(config): Chain;
```

Defined in: [account-kit/core/src/actions/getChain.ts:10](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/core/src/actions/getChain.ts#L10)

Gets the currently active chain

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `config`
      </td>

      <td>
        `AlchemyAccountsConfig`
      </td>

      <td>
        the account config object
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`Chain`](https://viem.sh)

the currently active chain