Transaction constructor

Transaction({
  1. Signature? signature,
  2. PublicKey? signerPublicKey,
  3. int? version,
  4. NetworkType? network,
  5. TransactionType? type,
  6. Amount? fee,
  7. Timestamp? deadline,
})

Implementation

Transaction(
    {Signature? signature,
    PublicKey? signerPublicKey,
    int? version,
    NetworkType? network,
    TransactionType? type,
    Amount? fee,
    Timestamp? deadline}) {
  this.signature = signature ?? Signature();
  this.signerPublicKey = signerPublicKey ?? PublicKey();
  this.version = version ?? 0;
  this.network = network ?? NetworkType.MAINNET;
  this.type = type ?? TransactionType.ACCOUNT_KEY_LINK;
  this.fee = fee ?? Amount();
  this.deadline = deadline ?? Timestamp();
}