public class SecretLockTransactionFactory extends TransactionFactory<SecretLockTransaction>
SecretLockTransaction
Modifier and Type | Method and Description |
---|---|
SecretLockTransaction |
build() |
static SecretLockTransactionFactory |
create(NetworkType networkType,
Deadline deadline,
Mosaic mosaic,
java.math.BigInteger duration,
LockHashAlgorithm hashAlgorithm,
java.lang.String secret,
UnresolvedAddress recipient)
Static create method for factory.
|
java.math.BigInteger |
getDuration()
Returns duration for the funds to be released or returned.
|
LockHashAlgorithm |
getHashAlgorithm()
Returns the hash algorithm, secret is generated with.
|
Mosaic |
getMosaic()
Returns locked mosaic.
|
UnresolvedAddress |
getRecipient()
Returns the recipient of the funds.
|
java.lang.String |
getSecret()
Returns the proof hashed.
|
calculateMaxFeeFromMultiplier, deadline, getDeadline, getGroup, getMaxFee, getNetworkType, getProvidedSize, getSignature, getSigner, getSize, getTransactionInfo, getType, getVersion, group, maxFee, signature, signer, size, transactionInfo, version
public static SecretLockTransactionFactory create(NetworkType networkType, Deadline deadline, Mosaic mosaic, java.math.BigInteger duration, LockHashAlgorithm hashAlgorithm, java.lang.String secret, UnresolvedAddress recipient)
networkType
- Network type.deadline
- the deadlinemosaic
- Mosaic.duration
- Duration.hashAlgorithm
- Hash algorithm.secret
- Secret.recipient
- Recipient.public Mosaic getMosaic()
public java.math.BigInteger getDuration()
public LockHashAlgorithm getHashAlgorithm()
public java.lang.String getSecret()
public UnresolvedAddress getRecipient()
public SecretLockTransaction build()
build
in class TransactionFactory<SecretLockTransaction>