Class SecretLockTransactionBuilder

    • Constructor Detail

      • SecretLockTransactionBuilder

        protected SecretLockTransactionBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • SecretLockTransactionBuilder

        protected SecretLockTransactionBuilder​(SignatureDto signature,
                                               KeyDto signerPublicKey,
                                               byte version,
                                               NetworkTypeDto network,
                                               EntityTypeDto type,
                                               AmountDto fee,
                                               TimestampDto deadline,
                                               UnresolvedAddressDto recipientAddress,
                                               Hash256Dto secret,
                                               UnresolvedMosaicBuilder mosaic,
                                               BlockDurationDto duration,
                                               LockHashAlgorithmDto hashAlgorithm)
        Constructor.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        recipientAddress - Locked mosaic recipient address.
        secret - Secret.
        mosaic - Locked mosaic.
        duration - Number of blocks for which a lock should be valid.
        hashAlgorithm - Hash algorithm.
    • Method Detail

      • loadFromBinary

        public static SecretLockTransactionBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of SecretLockTransactionBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of SecretLockTransactionBuilder.
      • getRecipientAddress

        public UnresolvedAddressDto getRecipientAddress()
        Gets locked mosaic recipient address.
        Returns:
        Locked mosaic recipient address.
      • getSecret

        public Hash256Dto getSecret()
        Gets secret.
        Returns:
        Secret.
      • getDuration

        public BlockDurationDto getDuration()
        Gets number of blocks for which a lock should be valid.
        Returns:
        Number of blocks for which a lock should be valid.
      • getHashAlgorithm

        public LockHashAlgorithmDto getHashAlgorithm()
        Gets hash algorithm.
        Returns:
        Hash algorithm.