uninstallPublishedModule

Uninstall a published module

Example

import { uninstallPublishedModule } from "thirdweb/modules";
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: {
contract: ThirdwebContract;
moduleData?: `0x${string}`;
moduleName: string;
publisherAddress?: string;
version?: string;
};

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction to send