Convenience function to add the RoyaltyERC721 module as a default module on a core contract.
import { RoyaltyERC721, deployModularContract } from "thirdweb/modules"; const deployed = deployModularContract({ client, chain, account, core: "ERC721", params: { name: "My Modular Contract", }, modules: [ RoyaltyERC721.module({ royaltyRecipient: ..., royaltyBps: ..., transferValidator: ..., }), ],});
function module( params: EncodeBytesOnInstallParams & { publisher?: string },): (args: { chain: Readonly;}) => Promise<{ data: `0x${string}`; module: `0x${string}` }>;
let returnType: (args: { chain: Readonly;}) => Promise<{ data: `0x${string}`; module: `0x${string}` }>;
The module function.