Class TransactionBuilder<T extends TransactionBuilder<T>>

    • Constructor Detail

    • Method Detail

      • applyTo

        protected abstract void applyTo​(Transaction txn)
      • build

        public final Transaction build()
        Build the Transaction object. An exception is thrown if a valid transaction cannot be created with the provided fields.
        Returns:
        A transaction.
      • group

        public T group​(Digest group)
        Set the group field. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.
        Parameters:
        group - The group.
        Returns:
        This builder.
      • group

        public T group​(byte[] group)
        Set the group field as a raw byte array representation. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.
        Parameters:
        group - The group.
        Returns:
        This builder.
      • groupUTF8

        public T groupUTF8​(String group)
        Set the group field as a UTF-8 encoded string. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.
        Parameters:
        group - The group.
        Returns:
        This builder.
      • groupB64

        public T groupB64​(String group)
        Set the group field as a base64 encoded string. When present indicates that this transaction is part of a transaction group and the value is the sha512/256 hash of the transactions in that group.
        Parameters:
        group - The group.
        Returns:
        This builder.