public class SecretLockTransaction extends Transaction
| Constructor and Description |
|---|
SecretLockTransaction(NetworkType networkType,
java.lang.Integer version,
Deadline deadline,
java.math.BigInteger fee,
Mosaic mosaic,
java.math.BigInteger duration,
HashType hashType,
java.lang.String secret,
Address recipient) |
SecretLockTransaction(NetworkType networkType,
java.lang.Integer version,
Deadline deadline,
java.math.BigInteger fee,
Mosaic mosaic,
java.math.BigInteger duration,
HashType hashType,
java.lang.String secret,
Address recipient,
java.util.Optional<java.lang.String> signature,
java.util.Optional<PublicAccount> signer,
java.util.Optional<TransactionInfo> transactionInfo) |
SecretLockTransaction(NetworkType networkType,
java.lang.Integer version,
Deadline deadline,
java.math.BigInteger fee,
Mosaic mosaic,
java.math.BigInteger duration,
HashType hashType,
java.lang.String secret,
Address recipient,
java.lang.String signature,
PublicAccount signer,
TransactionInfo transactionInfo) |
| Modifier and Type | Method and Description |
|---|---|
static SecretLockTransaction |
create(Deadline deadline,
Mosaic mosaic,
java.math.BigInteger duration,
HashType hashType,
java.lang.String secret,
Address recipient,
NetworkType networkType)
Create a secret lock transaction object.
|
java.math.BigInteger |
getDuration()
Returns duration for the funds to be released or returned.
|
HashType |
getHashType()
Returns the hash algorithm, secret is generated with.
|
Mosaic |
getMosaic()
Returns locked mosaic.
|
Address |
getRecipient()
Returns the recipient of the funds.
|
java.lang.String |
getSecret()
Returns the proof hashed.
|
createTransactionHash, getDeadline, getFee, getNetworkType, getSignature, getSigner, getTransactionInfo, getType, getVersion, hasMissingSignatures, isConfirmed, isUnannounced, isUnconfirmed, signWith, toAggregatepublic SecretLockTransaction(NetworkType networkType, java.lang.Integer version, Deadline deadline, java.math.BigInteger fee, Mosaic mosaic, java.math.BigInteger duration, HashType hashType, java.lang.String secret, Address recipient, java.lang.String signature, PublicAccount signer, TransactionInfo transactionInfo)
public SecretLockTransaction(NetworkType networkType, java.lang.Integer version, Deadline deadline, java.math.BigInteger fee, Mosaic mosaic, java.math.BigInteger duration, HashType hashType, java.lang.String secret, Address recipient)
public SecretLockTransaction(NetworkType networkType, java.lang.Integer version, Deadline deadline, java.math.BigInteger fee, Mosaic mosaic, java.math.BigInteger duration, HashType hashType, java.lang.String secret, Address recipient, java.util.Optional<java.lang.String> signature, java.util.Optional<PublicAccount> signer, java.util.Optional<TransactionInfo> transactionInfo)
public static SecretLockTransaction create(Deadline deadline, Mosaic mosaic, java.math.BigInteger duration, HashType hashType, java.lang.String secret, Address recipient, NetworkType networkType)
deadline - The deadline to include the transaction.mosaic - The locked mosaic.duration - The duration for the funds to be released or returned.hashType - The hash algorithm secret is generated with.secret - The proof hashed.recipient - The recipient of the funds.networkType - The network type.public Mosaic getMosaic()
public java.math.BigInteger getDuration()
public HashType getHashType()
public java.lang.String getSecret()
public Address getRecipient()