HashLockTransactionV1 constructor

HashLockTransactionV1({
  1. Signature? signature,
  2. PublicKey? signerPublicKey,
  3. int? version,
  4. NetworkType? network,
  5. TransactionType? type,
  6. Amount? fee,
  7. Timestamp? deadline,
  8. UnresolvedMosaic? mosaic,
  9. BlockDuration? duration,
  10. Hash256? hash,
})

Implementation

HashLockTransactionV1({
Signature? signature,
PublicKey? signerPublicKey,
int? version,
NetworkType? network,
TransactionType? type,
Amount? fee,
Timestamp? deadline,
UnresolvedMosaic? mosaic,
BlockDuration? duration,
Hash256? hash
}) {
	this.signature = signature ?? Signature();
	this.signerPublicKey = signerPublicKey ?? PublicKey();
	this.version = version ?? HashLockTransactionV1.TRANSACTION_VERSION;
	this.network = network ?? NetworkType.MAINNET;
	this.type = type ?? HashLockTransactionV1.TRANSACTION_TYPE;
	this.fee = fee ?? Amount();
	this.deadline = deadline ?? Timestamp();
	this.mosaic = mosaic ?? UnresolvedMosaic();
	this.duration = duration ?? BlockDuration();
	this.hash = hash ?? Hash256();
}