Serialize an argument to BCS-serialized bytes.
Serialize an argument as a type-agnostic, fixed byte sequence. The byte sequence contains the number of the following bytes followed by the BCS-serialized bytes for a typed argument.
Serialize an argument to BCS-serialized bytes as a type aware byte sequence. The byte sequence contains an enum variant index followed by the BCS-serialized bytes for a typed argument.
Static
deserializeGenerated using TypeDoc
This class exists to represent a contiguous sequence of already serialized BCS-bytes.
It differs from most other Serializable classes in that its internal byte buffer is serialized to BCS bytes exactly as-is, without prepending the length of the bytes.
If you want to write your own serialization function and pass the bytes as a transaction argument, you should use this class.
This class is also more generally used to represent type-agnostic BCS bytes as a vector.
An example of this is the bytes resulting from entry function arguments that have been serialized for an entry function.
Example
Params
value: HexInput representing a sequence of Uint8 bytes
Returns
a Serializable FixedBytes instance, which when serialized, does not prepend the length of the bytes
See
EntryFunctionBytes