Converts a hexadecimal string to a number.
import { hexToNumber } from "thirdweb/utils";const number = hexToNumber("0x1a4");console.log(number); // 420
function hexToNumber( hex: `0x${string}`, opts: HexToBigIntOpts,): number;
The hexadecimal string to convert.
let hex: `0x${string}`;
Optional options for the conversion.
let opts: { signed?: boolean; size?: number };
let returnType: number;
The converted number.