Decodes the data of a function call.
import { decodeFunctionData } from "thirdweb/utils"; const data = "0x...";const decodedData = await decodeFunctionData({ contract, data });
function decodeFunctionData(options: { contract: Readonly<ContractOptions<abi>>; data: `0x${string}`;}): Promise< ReturnType<ReturnType<abi, Name<abi>, undefined, AbiFunction>>>;
The options object.
let options: { contract: Readonly<ContractOptions<abi>>; data: `0x${string}`;};
let returnType: Promise< ReturnType<ReturnType<abi, Name<abi>, undefined, AbiFunction>>>;
The decoded data.