install
Installs the RoyaltyERC721 module on a core contract.
import { RoyaltyERC721 } from "thirdweb/modules"; const transaction = RoyaltyERC721.install({ contract: coreContract, account: account, params: { royaltyRecipient: ..., royaltyBps: ..., transferValidator: ..., },}); await sendTransaction({ transaction, account,});
function install(options: { params: EncodeBytesOnInstallParams & { publisher?: string };
let options: { params: EncodeBytesOnInstallParams & { publisher?: string };};
let returnType: Readonly<options> & { __preparedMethod?: () => Promise<PreparedMethod<abiFn>>;};
the transaction to install the module