Class SecretLockTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
- SecretLockTransactionV1Descriptor
Type safe descriptor used to generate a descriptor map for SecretLockTransactionV1Descriptor.
Start a token swap between different chains (V1, latest). Use a SecretLockTransaction to transfer mosaics between two accounts. The mosaics sent remain locked until a valid SecretProofTransaction unlocks them. The default expiration date is 365 days after announcement (See the
maxSecretLockDurationnetwork property). If the lock expires before a valid SecretProofTransaction is announced the locked amount goes back to the initiator of the SecretLockTransaction.
-
Constructor Summary
ConstructorsConstructorDescriptionSecretLockTransactionV1Descriptor(Address recipientAddress, CryptoTypes.Hash256 secret, UnresolvedMosaicDescriptor mosaic, BlockDuration duration, LockHashAlgorithm hashAlgorithm) Creates a descriptor for SecretLockTransactionV1. -
Method Summary
-
Constructor Details
-
SecretLockTransactionV1Descriptor
public SecretLockTransactionV1Descriptor(Address recipientAddress, CryptoTypes.Hash256 secret, UnresolvedMosaicDescriptor mosaic, BlockDuration duration, LockHashAlgorithm hashAlgorithm) Creates a descriptor for SecretLockTransactionV1.- Parameters:
recipientAddress- Address that receives the funds once successfully unlocked by a SecretProofTransaction.secret- Hashed proof.mosaic- Locked mosaics.duration- Number of blocks to wait for the SecretProofTransaction.hashAlgorithm- Algorithm used to hash the proof.
-
-
Method Details
-
toMap
- SecretLockTransactionV1Descriptor.toMap
Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
Descriptor map that can be passed to a transaction factory.
-