EmbeddedSecretLockTransactionV1 constructor

EmbeddedSecretLockTransactionV1({
  1. PublicKey? signerPublicKey,
  2. int? version,
  3. NetworkType? network,
  4. TransactionType? type,
  5. UnresolvedAddress? recipientAddress,
  6. Hash256? secret,
  7. UnresolvedMosaic? mosaic,
  8. BlockDuration? duration,
  9. 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;
}