Class HashLockTransactionBuilder

    • Constructor Detail

      • HashLockTransactionBuilder

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

        protected HashLockTransactionBuilder​(SignatureDto signature,
                                             KeyDto signerPublicKey,
                                             byte version,
                                             NetworkTypeDto network,
                                             EntityTypeDto type,
                                             AmountDto fee,
                                             TimestampDto deadline,
                                             UnresolvedMosaicBuilder mosaic,
                                             BlockDurationDto duration,
                                             Hash256Dto hash)
        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.
        mosaic - Lock mosaic.
        duration - Number of blocks for which a lock should be valid.
        hash - Lock hash.
    • Method Detail

      • loadFromBinary

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

        public static HashLockTransactionBuilder create​(SignatureDto signature,
                                                        KeyDto signerPublicKey,
                                                        byte version,
                                                        NetworkTypeDto network,
                                                        EntityTypeDto type,
                                                        AmountDto fee,
                                                        TimestampDto deadline,
                                                        UnresolvedMosaicBuilder mosaic,
                                                        BlockDurationDto duration,
                                                        Hash256Dto hash)
        Creates an instance of HashLockTransactionBuilder.
        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.
        mosaic - Lock mosaic.
        duration - Number of blocks for which a lock should be valid.
        hash - Lock hash.
        Returns:
        Instance of HashLockTransactionBuilder.
      • 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.
      • getHash

        public Hash256Dto getHash()
        Gets lock hash.
        Returns:
        Lock hash.