# toLightAccount

> Overview of the toLightAccount function

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

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

```ts
function toLightAccount<TLightAccountVersion>(
  param0,
): Promise<LightAccount<TLightAccountVersion>>;
```

Defined in: [packages/smart-accounts/src/light-account/accounts/account.ts:62](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/light-account/accounts/account.ts#L62)

Creates a light account.

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TLightAccountVersion` *extends* `"v1.0.1"` | `"v1.0.2"` | `"v1.1.0"` | `"v2.0.0"` | `"v2.1.0"` | `"v2.2.0"`
      </td>

      <td>
        `"v1.0.1"` | `"v1.0.2"` | `"v1.1.0"` | `"v2.0.0"` | `"v2.1.0"` | `"v2.2.0"`
      </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>
        `param0`
      </td>

      <td>
        [`ToLightAccountParams`](../type-aliases/ToLightAccountParams)\<`TLightAccountVersion`>
      </td>

      <td>
        The parameters for creating a light account.
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

A light account.