Gets or deploys a module implementation contract.
import { getOrDeployModule } from "thirdweb/modules"; const module = await getOrDeployModule({ client, chain, account, contractId, publisher,});
function getOrDeployModule(options: { account: Account; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; contractId: string; publisher?: string;}): Promise<Readonly<ContractOptions<[]>>>;
The options to use.
let options: { account: Account; chain: Readonly<ChainOptions & { rpc: string }>; client: ThirdwebClient; contractId: string; publisher?: string;};
let returnType: Promise<Readonly<ContractOptions<[]>>>;
The module.