addMemo method

TransactionBuilder addMemo (
  1. Memo memo
)

Adds a memo to this transaction.

Implementation

TransactionBuilder addMemo(Memo memo) {
  if (_mMemo != null) {
    throw Exception("Memo has been already added.");
  }
  checkNotNull(memo, "memo cannot be null");
  _mMemo = memo;
  return this;
}