@aptos-labs/ts-sdk - v5.1.4
    Preparing search index...

    Function bigIntToBytesLE

    • Converts a bigint value into a little-endian byte array of a specified length. This function is useful for representing large integers in a byte format, which is often required for cryptographic operations or binary data manipulation.

      Parameters

      • value: number | bigint

        The number to convert into bytes.

      • length: number

        The desired length of the resulting byte array.

      Returns Uint8Array

      A Uint8Array containing the little-endian representation of the bigint value.