Install a published extension on a modular contract
import { installPublishedExtension } from "thirdweb/extensions/modular";const transaction = installPublishedExtension({ client, chain, account, contract, extensionName: "MyExtension", publisherAddress: "0x...",});await sendTransaction({ transaction, account });
function installPublishedExtension( options: InstallPublishedExtensionOptions,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for installing a published extension
let options: InstallPublishedExtensionOptions;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction to send