EmbeddedSecretLockTransactionV1 constructor
EmbeddedSecretLockTransactionV1({
- PublicKey? signerPublicKey,
- int? version,
- NetworkType? network,
- TransactionType? type,
- UnresolvedAddress? recipientAddress,
- Hash256? secret,
- UnresolvedMosaic? mosaic,
- BlockDuration? duration,
- LockHashAlgorithm? hashAlgorithm,
Implementation
EmbeddedSecretLockTransactionV1({
PublicKey? signerPublicKey,
int? version,
NetworkType? network,
TransactionType? type,
UnresolvedAddress? recipientAddress,
Hash256? secret,
UnresolvedMosaic? mosaic,
BlockDuration? duration,
LockHashAlgorithm? hashAlgorithm
}) {
this.signerPublicKey = signerPublicKey ?? PublicKey();
this.version = version ?? EmbeddedSecretLockTransactionV1.TRANSACTION_VERSION;
this.network = network ?? NetworkType.MAINNET;
this.type = type ?? EmbeddedSecretLockTransactionV1.TRANSACTION_TYPE;
this.recipientAddress = recipientAddress ?? UnresolvedAddress();
this.secret = secret ?? Hash256();
this.mosaic = mosaic ?? UnresolvedMosaic();
this.duration = duration ?? BlockDuration();
this.hashAlgorithm = hashAlgorithm ?? LockHashAlgorithm.SHA3_256;
}