# isModularAccountV2

> Overview of the isModularAccountV2 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 isModularAccountV2(account): account is ModularAccountV2Base;
```

Defined in: [packages/smart-accounts/src/ma-v2/utils/account.ts:128](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/smart-accounts/src/ma-v2/utils/account.ts#L128)

Checks if an account is a ModularAccountV2.

## 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>
        [`SmartAccount`](https://viem.sh)
      </td>

      <td>
        The account to check.
      </td>
    </tr>

  </tbody>
</table>

## Returns

`account is ModularAccountV2Base`

True if the account is a ModularAccountV2, false otherwise.