TxDestination class

One recipient in a Mochimo transaction.

The on-wire entry is 44 bytes: a 20-byte tag, a 16-byte reference, and an 8-byte little-endian amount. That is MDST in src/types.h.

Constructors

TxDestination({required Uint8List tag, required BigInt amount, Uint8List? reference, String? memo})

Properties

amount → BigInt
final
hashCode → int
The hash code for this object.
no setterinherited
reference → Uint8List
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → Uint8List
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() → Uint8List
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

encodeMemo(String memo) → Uint8List
Encodes a memo into the 16-byte reference field.
isValidReference(Uint8List reference) → bool
The node's reference state machine from mdst_val__reference.