Decodes an error.
import { decodeError } from "thirdweb/utils"; const data = "0x...";const error = await decodeError({ contract, data });
function decodeError(options: { contract: Readonly<ContractOptions<abi>>; data: `0x${string}`;}): Promise<unknown>;
The options object.
let options: { contract: Readonly<ContractOptions<abi>>; data: `0x${string}`;};
let returnType: Promise<unknown>;
The decoded error.