SecretLockTransactionV1 constructor
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,
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;
}