TransactionPayload class abstract

Represents a supported Transaction Payload that can be serialized and deserialized.

This class serves as a base for different types of transaction payloads, allowing for their serialization into a format suitable for transmission and deserialization back into their original form.

Inheritance
Implementers

Constructors

TransactionPayload()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

bcsToBytes() → Uint8List
Serializes a Serializable value to its BCS representation. This function is the Dart SDK equivalent of bcs::to_bytes in Move.
inherited
bcsToHex() → Hex
Converts the BCS-serialized bytes of a value into a Hex instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(Serializer serializer) → void
Serialize a Transaction Payload.
override
toString() → String
Returns the hex string representation of the value with the 0x prefix.
inherited
toStringWithoutPrefix() → String
Returns the hex string representation of the value without the 0x prefix.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

deserialize(Deserializer deserializer) → TransactionPayload
Deserialize a Transaction Payload.