Private
constructorReadonly
valueSerialize 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.
Static
deserializeThe only way to create an instance of this class is to use this static method.
This function should only be used when deserializing a sequence of EntryFunctionPayload arguments.
the deserializer instance with the buffered bytes
the length of the bytes to deserialize
an instance of this class, which will now only be usable as an EntryFunctionArgument
Generated using TypeDoc
This class exists solely to represent a sequence of fixed bytes as a serialized entry function, because serializing an entry function appends a prefix that's only used for entry function arguments.
NOTE: Attempting to use this class for a serialized script function will result in erroneous and unexpected behavior.
If you wish to convert this class back to a TransactionArgument, you must know the type of the argument beforehand, and use the appropriate class to deserialize the bytes within an instance of this class.