isGetInstalledModulesSupported

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

Example

import { isGetInstalledModulesSupported } from "thirdweb/extensions/modular";
const supported = await isGetInstalledModulesSupported(contract);
function isGetInstalledModulesSupported(
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 getInstalledModules method is supported.