SecretLockTransactionV1 constructor

SecretLockTransactionV1({
  1. Signature? signature,
  2. PublicKey? signerPublicKey,
  3. int? version,
  4. NetworkType? network,
  5. TransactionType? type,
  6. Amount? fee,
  7. Timestamp? deadline,
  8. UnresolvedAddress? recipientAddress,
  9. Hash256? secret,
  10. UnresolvedMosaic? mosaic,
  11. BlockDuration? duration,
  12. LockHashAlgorithm? hashAlgorithm,
})

Implementation

SecretLockTransactionV1({
Signature? signature,
PublicKey? signerPublicKey,
int? version,
NetworkType? network,
TransactionType? type,
Amount? fee,
Timestamp? deadline,
UnresolvedAddress? recipientAddress,
Hash256? secret,
UnresolvedMosaic? mosaic,
BlockDuration? duration,
LockHashAlgorithm? hashAlgorithm
}) {
	this.signature = signature ?? Signature();
	this.signerPublicKey = signerPublicKey ?? PublicKey();
	this.version = version ?? SecretLockTransactionV1.TRANSACTION_VERSION;
	this.network = network ?? NetworkType.MAINNET;
	this.type = type ?? SecretLockTransactionV1.TRANSACTION_TYPE;
	this.fee = fee ?? Amount();
	this.deadline = deadline ?? Timestamp();
	this.recipientAddress = recipientAddress ?? UnresolvedAddress();
	this.secret = secret ?? Hash256();
	this.mosaic = mosaic ?? UnresolvedMosaic();
	this.duration = duration ?? BlockDuration();
	this.hashAlgorithm = hashAlgorithm ?? LockHashAlgorithm.SHA3_256;
}