Umbra SDK Docs

convertLeBytesToBigInt

Umbra SDK reference for Convert Le Bytes To Big Int.

client


convertLeBytesToBigInt(bytes, numberOfBytes): bigint

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

Converts a little-endian byte array into a bigint.

Parameters

bytes

LeBytes

The little-endian bytes.

numberOfBytes

number

Number of bytes to read from the buffer.

Returns

bigint

The reconstructed bigint value.