Arcium LogoArcium TS SDK Docs

serializeLE

serializeLE(val, lengthInBytes): Uint8Array

Serialize a bigint to a little-endian Uint8Array of the specified length.

Parameters

ParameterTypeDescription
valbigintBigint value to serialize.
lengthInBytesnumberDesired length of the output array.

Returns

Uint8Array

Serialized value as a Uint8Array.

Throws

Error if the value is too large for the specified length.

On this page