Memo class

The memo contains optional extra information. It is the responsibility of the client to interpret this value. Memos can be one of the following types:

  • MEMO_NONE: Empty memo.
  • MEMO_TEXT: A string up to 28-bytes long.
  • MEMO_ID: A 64 bit unsigned integer.
  • MEMO_HASH: A 32 byte hash.
  • MEMO_RETURN: A 32 byte hash intended to be interpreted as the hash of the transaction the sender is refunding.

Use static methods to generate any of above types.

Implementers

Constructors

Memo()
Memo.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
toXdr() XdrMemo

Operators

operator ==(Object o) bool
The equality operator. [...]
override

Static Methods

fromXdr(XdrMemo memo) Memo
hash(Uint8List bytes) MemoHash
Creates MemoHash instance from byte array.
hashString(String hexString) MemoHash
Creates MemoHash instance from hex-encoded string
id(int id) MemoId
Creates MemoId instance.
none() MemoNone
Creates MemoNone instance.
returnHash(Uint8List bytes) MemoReturnHash
Creates MemoReturnHash instance from byte array.
returnHashString(String hexString) MemoReturnHash
Creates MemoReturnHash instance from hex-encoded string.
text(String text) MemoText
Creates MemoText instance.