installModule

Prepares a transaction to call the "installModule" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { installModule } from "thirdweb/extensions/modules";
const transaction = installModule({
contract,
moduleContract: ...,
data: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function installModule(
| { asyncParams: () => Promise<InstallModuleParams> }
>,

Parameters

The options for the "installModule" function.

Type

| { asyncParams: () => Promise<InstallModuleParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.