Detects if the specified method is present in the contract bytecode.
import { detectMethod } from "thirdweb/utils/extensions/detect.js";const hasDecimals = await detectMethod({ method: "function decimals() view returns (uint8)", availableSelectors: ["0x313ce567"],});
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.