function getMSCAUpgradeToData<TTransport, TChain, TSigner, TAccount>(
client,
args,
): Promise<UpgradeToData & object>;Defined in: account-kit/smart-contracts/src/msca/utils.ts:107
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 { createLightAccountClient, getMSCAUpgradeToData } from "@account-kit/smart-contracts";
const client = createLightAccountClient(...);
const upgradeData = await getMSCAUpgradeToData(client, {});| Type Parameter | Default type |
|---|---|
| |
|
|
|
|
|
|
| Parameter | Type | Description |
|---|---|---|
|
| The smart account client |
|
| The arguments required for the upgrade |
Promise<UpgradeToData & object>
A promise that resolves to upgrade data augmented with a function to create a Multi-Owner Modular Account