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: HexToBigIntOpts,): bigint;
The hexadecimal string to convert.
let hex: `0x${string}`;
Optional parameters for the conversion.
let opts: { signed?: boolean; size?: number };
let returnType: bigint;
The BigInt representation of the hexadecimal string.