# createAccount | @account-kit/core

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

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

Creates an account of a specified type using the provided parameters and configuration. Supports creating LightAccount and MultiOwnerModularAccount types.

## Example

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

const account = createAccount(
  {
    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>
        [`CreateAccountParams`](../type-aliases/CreateAccountParams)\<`TAccount`>
      </td>

      <td>
        The parameters required to create the account, including the type and account parameters
      </td>
    </tr>

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

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

      <td>
        The configuration object for Alchemy accounts
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<[`SupportedAccounts`](../type-aliases/SupportedAccounts)>

A promise that resolves to the created account object