# ToModularAccountV2Params

> Overview of ToModularAccountV2Params

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

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

```ts
type ToModularAccountV2Params<TMode> = object & TMode extends "7702" ? object : object &
  | {
  factoryData?: never;
  salt?: bigint;
}
  | {
  factoryData?: Hex;
  salt?: never;
};
```

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

## Type Declaration

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

  <tbody>
    <tr>
      <td>
        `accountAddress?`
      </td>

      <td>
        [`Address`](https://abitype.dev)
      </td>
    </tr>

    <tr>
      <td>
        `client`
      </td>

      <td>
        [`Client`](https://viem.sh)\<[`Transport`](https://viem.sh), [`Chain`](https://viem.sh),
        | [`JsonRpcAccount`](https://viem.sh)
        | [`LocalAccount`](https://viem.sh)
        | `undefined`>
      </td>
    </tr>

    <tr>
      <td>
        `deferredAction?`
      </td>

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

    <tr>
      <td>
        `mode?`
      </td>

      <td>
        `TMode`
      </td>
    </tr>

    <tr>
      <td>
        `owner`
      </td>

      <td>
        [`JsonRpcAccount`](https://viem.sh) | [`LocalAccount`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `signerEntity?`
      </td>

      <td>
        [`SignerEntity`](SignerEntity)
      </td>
    </tr>

  </tbody>
</table>

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TMode` *extends* `Mode` | `undefined`
      </td>

      <td>
        `Mode` | `undefined`
      </td>
    </tr>

  </tbody>
</table>