build method

Transaction build ()

Builds a transaction. It will increment the sequence number of the source account.

Implementation

Transaction build() {
  List<Operation> operations = List<Operation>();
  operations.addAll(_mOperations);
  Transaction transaction = Transaction(
      _mSourceAccount.keypair.accountId,
      operations.length * AbstractTransaction.MIN_BASE_FEE,
      _mSourceAccount.incrementedSequenceNumber,
      operations,
      _mMemo,
      _mTimeBounds,
      _mNetwork);
  // Increment sequence number when there were no exceptions when creating a transaction
  _mSourceAccount.incrementSequenceNumber();
  return transaction;
}