Converts a hexadecimal string to a BigInt.
import { hexToBigInt } from "thirdweb/utils";const bigInt = hexToBigInt("0x1a4");console.log(bigInt); // 420n
function hexToBigInt(hex: `0x${string}`, opts: Options): bigint;
The hexadecimal string to convert.
let hex: `0x${string}`;
Optional parameters for the conversion.
let opts: Options;
let returnType: bigint;
The BigInt representation of the hexadecimal string.