uninstallPublishedModule

Uninstall a published module

Example

import { uninstallPublishedModule } from "thirdweb/modules/modular";
const transaction = uninstallPublishedModule({
client,
chain,
contract,
moduleName: "MyModule",
publisherAddress: "0x...",
});
await sendTransaction({ transaction, account });
function uninstallPublishedModule(

Parameters

The options for uninstalling a published module

Type

let options: {
chain: Chain;
client: ThirdwebClient;
constructorParams?: Array<unknown>;
contract: ThirdwebContract;
moduleData?: `0x${string}`;
moduleName: string;
publisherAddress?: string;
version?: string;
};

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction to send