Skip to main content

Function: hexToBigInt()

function hexToBigInt(hex): bigint

Converts a hex string to a bigint.

Parameters

ParameterTypeDescription

hex

0x${string}

The hex string to convert.

Returns

bigint

The bigint representation of the input.

Defined

@nilfoundation/niljs/src/encoding/fromHex.ts:37