installModule

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

Example

import { installModule } from "thirdweb/extensions/modular";
const transaction = installModule({
contract,
module: ...,
data: ...,
overrides: {
...
}
});
// Send the transaction
...
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.