Skip to content

getMSCAUpgradeToData

Retrieves the data necessary to upgrade to a Multi-Signature Contract Account (MSCA) and provides a method to create a Multi-Owner Modular Account.

Import

import { getMSCAUpgradeToData } from "@account-kit/smart-contracts";

Usage

import { createLightAccountClient, getMSCAUpgradeToData } from "@account-kit/smart-contracts";
 
const client = createLightAccountClient(...);
const upgradeData = await getMSCAUpgradeToData(client, {});

Parameters

client

SmartAccountClient<TTransport, TChain, TAccount> The smart account client

args

GetMSCAUpgradeToData<TSigner, TAccount> The arguments required for the upgrade

Returns

Promise<UpgradeToData & { createMAAccount: () => Promise<MultiOwnerModularAccount<TSigner>>}> A promise that resolves to upgrade data augmented with a function to create a Multi-Owner Modular Account