Class EmbeddedSecretLockTransactionBuilder

    • Constructor Detail

      • EmbeddedSecretLockTransactionBuilder

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

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

      • 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.
      • getRecipientAddress

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

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