getDeployedModule

Gets a deployed module implementation contract.

Example

import { getDeployedModule } from "thirdweb/modules";
const module = await getDeployedModule({
client,
chain,
contractId,
publisher,
});
function getDeployedModule(options: {
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
contractId: string;
publisher?: string;
}): Promise<null | Readonly<ContractOptions<[]>>>;

Parameters

The options to use.

Type

let options: {
chain: Readonly<ChainOptions & { rpc: string }>;
client: ThirdwebClient;
contractId: string;
publisher?: string;
};

Returns

let returnType: Promise<null | Readonly<ContractOptions<[]>>>;

The module.