isInstallModuleSupported

Checks if the installModule method is supported by the given contract.

Example

import { isInstallModuleSupported } from "thirdweb/extensions/modular";
const supported = await isInstallModuleSupported(contract);
function isInstallModuleSupported(
contract: Readonly<ContractOptions<any>>,
): Promise<boolean>;

Parameters

The ThirdwebContract.

Type

let contract: Readonly<ContractOptions<any>>;

Returns

let returnType: Promise<boolean>;

A promise that resolves to a boolean indicating if the installModule method is supported.