getModuleConfig

Calls the "getModuleConfig" function on the contract.

Example

import { getModuleConfig } from "thirdweb/extensions/modular";
const result = await getModuleConfig({
contract,
});
function getModuleConfig(options: BaseTransactionOptions) : Promise<{ callbackFunctions: readonly Array<{ selector: `0x${string}` }>; fallbackFunctions: readonly Array<{ permissionBits: bigint; selector: `0x${string}` }>; registerInstallationCallback: boolean; requiredInterfaces: readonly Array<`0x${string}`>; supportedInterfaces: readonly Array<`0x${string}`> }>

Parameters

The options for the getModuleConfig function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<{ callbackFunctions: readonly Array<{ selector: `0x${string}` }>; fallbackFunctions: readonly Array<{ permissionBits: bigint; selector: `0x${string}` }>; registerInstallationCallback: boolean; requiredInterfaces: readonly Array<`0x${string}`>; supportedInterfaces: readonly Array<`0x${string}`> }>

The parsed result of the function call.