# getMAInitializationData | @account-kit/smart-contracts

> Overview of the getMAInitializationData 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 getMAInitializationData<TTransport, TChain, TAccount>(
  params,
): Promise<UpgradeToData>;
```

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

Retrieves the initialization data for a multi-owner modular account. Throws an error if the client's chain is not found or if the multi-owner plugin address is not retrievable.

## Example

```ts
import { getMAInitializationData } from "@account-kit/smart-contracts";
import { createSmartAccountClient } from "@aa-sdk/core";

const client = createSmartAccountClient(...);
const initializationData = await getMAInitializationData({
 client,
 signerAddress: "0x...", // or array of signers
});
```

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TTransport` *extends* [`Transport`](https://viem.sh)
      </td>

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

    <tr>
      <td>
        `TChain` *extends* `undefined` | [`Chain`](https://viem.sh)
      </td>

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

    <tr>
      <td>
        `TAccount` *extends* `undefined` | `SmartContractAccount`
      </td>

      <td>
        `undefined` | `SmartContractAccount`
      </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>
        `GetMAInitializationDataParams`\<`TTransport`, `TChain`, `TAccount`>
      </td>

      <td>
        the parameters for getting initialization data
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<`UpgradeToData`>

a promise that resolves to the initialization data required for upgrading to a multi-owner modular account