Transaction constructor

Transaction(
  1. dynamic nonce,
  2. dynamic epoch,
  3. dynamic type,
  4. dynamic to,
  5. dynamic amount,
  6. dynamic maxFee,
  7. dynamic tips,
  8. dynamic payload,
)

Implementation

Transaction(nonce, epoch, type, to, amount, maxFee, tips, payload) {
  this.nonce = nonce == null ? 0 : nonce;
  this.epoch = epoch == null ? 0 : epoch;
  this.type = type == null ? 0 : type;
  this.to = to == null ? "" : to;
  this.amount = amount == null ? 0 : amount;
  this.maxFee = maxFee == null ? 0 : maxFee;
  this.tips = tips == null ? 0 : tips;
  this.payload = payload == null ? null : payload;
  this.signature = null;
}