Class Protos.TransactionInput.Builder

    • Method Detail

      • hasTransactionOutPointHash

        public boolean hasTransactionOutPointHash()
         Hash of the transaction this input is using.
         
        required bytes transaction_out_point_hash = 1;
        Specified by:
        hasTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
        Returns:
        Whether the transactionOutPointHash field is set.
      • getTransactionOutPointHash

        public com.google.protobuf.ByteString getTransactionOutPointHash()
         Hash of the transaction this input is using.
         
        required bytes transaction_out_point_hash = 1;
        Specified by:
        getTransactionOutPointHash in interface Protos.TransactionInputOrBuilder
        Returns:
        The transactionOutPointHash.
      • setTransactionOutPointHash

        public Protos.TransactionInput.Builder setTransactionOutPointHash​(com.google.protobuf.ByteString value)
         Hash of the transaction this input is using.
         
        required bytes transaction_out_point_hash = 1;
        Parameters:
        value - The transactionOutPointHash to set.
        Returns:
        This builder for chaining.
      • clearTransactionOutPointHash

        public Protos.TransactionInput.Builder clearTransactionOutPointHash()
         Hash of the transaction this input is using.
         
        required bytes transaction_out_point_hash = 1;
        Returns:
        This builder for chaining.
      • hasTransactionOutPointIndex

        public boolean hasTransactionOutPointIndex()
         Index of transaction output used by this input.
         
        required uint32 transaction_out_point_index = 2;
        Specified by:
        hasTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
        Returns:
        Whether the transactionOutPointIndex field is set.
      • getTransactionOutPointIndex

        public int getTransactionOutPointIndex()
         Index of transaction output used by this input.
         
        required uint32 transaction_out_point_index = 2;
        Specified by:
        getTransactionOutPointIndex in interface Protos.TransactionInputOrBuilder
        Returns:
        The transactionOutPointIndex.
      • setTransactionOutPointIndex

        public Protos.TransactionInput.Builder setTransactionOutPointIndex​(int value)
         Index of transaction output used by this input.
         
        required uint32 transaction_out_point_index = 2;
        Parameters:
        value - The transactionOutPointIndex to set.
        Returns:
        This builder for chaining.
      • clearTransactionOutPointIndex

        public Protos.TransactionInput.Builder clearTransactionOutPointIndex()
         Index of transaction output used by this input.
         
        required uint32 transaction_out_point_index = 2;
        Returns:
        This builder for chaining.
      • hasScriptBytes

        public boolean hasScriptBytes()
         Script that contains the signatures/pubkeys.
         
        required bytes script_bytes = 3;
        Specified by:
        hasScriptBytes in interface Protos.TransactionInputOrBuilder
        Returns:
        Whether the scriptBytes field is set.
      • getScriptBytes

        public com.google.protobuf.ByteString getScriptBytes()
         Script that contains the signatures/pubkeys.
         
        required bytes script_bytes = 3;
        Specified by:
        getScriptBytes in interface Protos.TransactionInputOrBuilder
        Returns:
        The scriptBytes.
      • setScriptBytes

        public Protos.TransactionInput.Builder setScriptBytes​(com.google.protobuf.ByteString value)
         Script that contains the signatures/pubkeys.
         
        required bytes script_bytes = 3;
        Parameters:
        value - The scriptBytes to set.
        Returns:
        This builder for chaining.
      • clearScriptBytes

        public Protos.TransactionInput.Builder clearScriptBytes()
         Script that contains the signatures/pubkeys.
         
        required bytes script_bytes = 3;
        Returns:
        This builder for chaining.
      • setSequence

        public Protos.TransactionInput.Builder setSequence​(int value)
         Sequence number.
         
        optional uint32 sequence = 4;
        Parameters:
        value - The sequence to set.
        Returns:
        This builder for chaining.
      • clearSequence

        public Protos.TransactionInput.Builder clearSequence()
         Sequence number.
         
        optional uint32 sequence = 4;
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         Value of connected output, if known
         
        optional int64 value = 5;
        Specified by:
        hasValue in interface Protos.TransactionInputOrBuilder
        Returns:
        Whether the value field is set.
      • setValue

        public Protos.TransactionInput.Builder setValue​(long value)
         Value of connected output, if known
         
        optional int64 value = 5;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public Protos.TransactionInput.Builder clearValue()
         Value of connected output, if known
         
        optional int64 value = 5;
        Returns:
        This builder for chaining.
      • hasWitness

        public boolean hasWitness()
         script witness
         
        optional .wallet.ScriptWitness witness = 6;
        Specified by:
        hasWitness in interface Protos.TransactionInputOrBuilder
        Returns:
        Whether the witness field is set.