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