installPublishedModule
Install a published module on a modular contract
import { installPublishedModule } from "thirdweb/modules/modular";const transaction = installPublishedModule({ client, chain, account, contract, moduleName: "MyModule", publisherAddress: "0x...",});await sendTransaction({ transaction, account });
function installPublishedModule(
The options for installing a published module
let options: { constructorParams?: Array<unknown>; moduleData?: `0x${string}`; moduleName: string; publisherAddress?: string; version?: string;};
any, AbiFunction,>;
A prepared transaction to send