# getAccount | @account-kit/core

> Overview of the getAccount 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 getAccount<TAccount>(params, config): GetAccountResult<TAccount>;
```

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

Retrieves the account of the specified type from the client store based on the provided configuration.

## Example

```ts
import { getAccount } from "@account-kit/core";
// see createConfig for more information on how to create a config
import { config } from "./config";

const { account, status } = getAccount(
  {
    type: "LightAccount",
  },
  config,
);
```

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TAccount` *extends* [`SupportedAccountTypes`](../type-aliases/SupportedAccountTypes)
      </td>
    </tr>
  </tbody>
</table>

## Parameters

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

  <tbody>
    <tr>
      <td>
        `params`
      </td>

      <td>
        [`GetAccountParams`](../type-aliases/GetAccountParams)\<`TAccount`>
      </td>

      <td>
        The parameters containing the type of the account to retrieve
      </td>
    </tr>

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

      <td>
        [`AlchemyAccountsConfig`](../type-aliases/AlchemyAccountsConfig)
      </td>

      <td>
        The configuration containing the client store
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`GetAccountResult`](../type-aliases/GetAccountResult)\<`TAccount`>

The result which includes the account if found and its status