# getMAV2UpgradeToData

> Overview of the getMAV2UpgradeToData 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 getMAV2UpgradeToData(ownerAddress): Promise<UpgradeToData>;
```

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

Gets the upgrade to data for the 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>
        `ownerAddress`
      </td>

      <td>
        `` `0x${string}` ``
      </td>

      <td>
        The address of the owner.
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

The upgrade to data.