hexToBigInt

Converts a hexadecimal string to a BigInt.

Example

import { hexToBigInt } from "thirdweb/utils";
const bigInt = hexToBigInt("0x1a4");
console.log(bigInt); // 420n

Parameters

Returns

The BigInt representation of the hexadecimal string.