# getLightAccountVersionForAccount | @account-kit/smart-contracts

> Overview of the getLightAccountVersionForAccount function from @account-kit/smart-contracts

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

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

```ts
function getLightAccountVersionForAccount<TAccount>(
  account,
  chain,
): Promise<LightAccountVersionConfig>;
```

Defined in: [account-kit/smart-contracts/src/light-account/utils.ts:153](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/smart-contracts/src/light-account/utils.ts#L153)

Get the light account version definition for the given light account and chain

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TAccount` *extends* `LightAccountBase`
      </td>

      <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>
        `account`
      </td>

      <td>
        `TAccount`
      </td>

      <td>
        the light account to get the version for
      </td>
    </tr>

    <tr>
      <td>
        `chain`
      </td>

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

      <td>
        the chain to get the version for
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<`LightAccountVersionConfig`>

the light account version definition for the given light account and chain