CCC Docs
    Preparing search index...

    Function btcVarLengthBytesFrom

    • Encodes a number into a variable-length byte array according to the Bitcoin protocol. This format is used for encoding lengths of data, such as script lengths.

      Parameters

      • len: NumLike

        The number to encode. Can be a NumLike.

      Returns Bytes

      The encoded length as a Bytes.