module

Convenience function to add the OpenEditionMetadataERC721 module as a default module on a core contract.

Example

import {
OpenEditionMetadataERC721,
deployModularContract,
} from "thirdweb/modules";
const deployed = deployModularContract({
client,
chain,
account,
core: "ERC721",
params: {
name: "My Modular Contract",
},
modules: [OpenEditionMetadataERC721.module()],
});
function module(params?: {
publisher?: string;
}): (args: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
}) => Promise<{ data: "0x"; module: `0x${string}` }>;

Parameters

The parameters for the module.

Type

let params: { publisher?: string };

Returns

let returnType: (args: {
account: Account;
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
}) => Promise<{ data: "0x"; module: `0x${string}` }>;
  • The module function.