installPublishedExtension

Install a published extension on a modular contract

Example

import { installPublishedExtension } from "thirdweb/extensions/modular";
const transaction = installPublishedExtension({
client,
chain,
account,
contract,
extensionName: "MyExtension",
publisherAddress: "0x...",
});
await sendTransaction({ transaction, account });

Parameters

Returns

A prepared transaction to send