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