Umbra SDK Docs

convertStringToBigInt

Umbra SDK reference for Convert String To Big Int.

client


convertStringToBigInt(string): bigint

Defined in: src/utils/convertors.ts:228

Converts a decimal string representation of an integer into a bigint.

Parameters

string

string

The string to convert (typically base-10 encoded).

Returns

bigint

The corresponding bigint value.

Throws

SyntaxError If the string is not a valid bigint literal for BigInt(...).