Detects if the specified method is present in the contract bytecode.
import { detectMethod } from "thirdweb/utils/extensions/detect.js";const hasDecimals = await detectMethod({ contract, method: "function decimals() view returns (uint8)",});
function detectMethod(options: DetectExtensionOptions): boolean;
The options for detecting the extension.
let options: DetectExtensionOptions;
let returnType: boolean;
A promise that resolves to a boolean indicating if the extension is detected.