Checks if a value is a valid hexadecimal string.
import { isHex } from "thirdweb/utils";const result = isHex("0x1a4");console.log(result); // true
function isHex( value: unknown, options: IsHexOptions,): value is `0x${string}`;
The value to be checked.
let value: unknown;
Optional configuration for the validation.
let options: { strict?: boolean };
let returnType: value is (`0x${string}`)
True if the value is a valid hexadecimal string, false otherwise.