Class NodeKeyLinkTransactionBuilder

  • All Implemented Interfaces:
    Serializer

    public class NodeKeyLinkTransactionBuilder
    extends TransactionBuilder
    implements Serializer
    Binary layout for a non-embedded node key link transaction
    • Constructor Detail

      • NodeKeyLinkTransactionBuilder

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

        protected NodeKeyLinkTransactionBuilder​(SignatureDto signature,
                                                KeyDto signerPublicKey,
                                                byte version,
                                                NetworkTypeDto network,
                                                EntityTypeDto type,
                                                AmountDto fee,
                                                TimestampDto deadline,
                                                KeyDto linkedPublicKey,
                                                LinkActionDto linkAction)
        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.
        linkedPublicKey - Linked public key.
        linkAction - Link action.
    • Method Detail

      • loadFromBinary

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

        public static NodeKeyLinkTransactionBuilder create​(SignatureDto signature,
                                                           KeyDto signerPublicKey,
                                                           byte version,
                                                           NetworkTypeDto network,
                                                           EntityTypeDto type,
                                                           AmountDto fee,
                                                           TimestampDto deadline,
                                                           KeyDto linkedPublicKey,
                                                           LinkActionDto linkAction)
        Creates an instance of NodeKeyLinkTransactionBuilder.
        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.
        linkedPublicKey - Linked public key.
        linkAction - Link action.
        Returns:
        Instance of NodeKeyLinkTransactionBuilder.
      • getLinkedPublicKey

        public KeyDto getLinkedPublicKey()
        Gets linked public key.
        Returns:
        Linked public key.
      • getLinkAction

        public LinkActionDto getLinkAction()
        Gets link action.
        Returns:
        Link action.