-
- All Implemented Interfaces:
public final class TxIn
Bitcoin transaction input.
It contains the location of the previous transaction’s output, that it spends and set of scripts that satisfy its spending conditions.
-
-
Method Summary
Modifier and Type Method Description final OutPoint
getPreviousOutput()
The reference to the previous output that is being used an an input. final Unit
setPreviousOutput(OutPoint previousOutput)
The reference to the previous output that is being used an an input. final Script
getScriptSig()
The script which pushes values on the stack which will cause the referenced output’s script to be accepted. final Unit
setScriptSig(Script scriptSig)
The script which pushes values on the stack which will cause the referenced output’s script to be accepted. final UInt
getSequence()
The sequence number, which suggests to miners which of two conflicting transactions should be preferred, or 0xFFFFFFFF to ignore this feature. final Unit
setSequence(UInt sequence)
The sequence number, which suggests to miners which of two conflicting transactions should be preferred, or 0xFFFFFFFF to ignore this feature. final List<List<UByte>>
getWitness()
Witness data: an array of byte-arrays. final Unit
setWitness(List<List<UByte>> witness)
Witness data: an array of byte-arrays.
-
-
-
Method Detail
-
getPreviousOutput
final OutPoint getPreviousOutput()
The reference to the previous output that is being used an an input.
-
setPreviousOutput
final Unit setPreviousOutput(OutPoint previousOutput)
The reference to the previous output that is being used an an input.
-
getScriptSig
final Script getScriptSig()
The script which pushes values on the stack which will cause the referenced output’s script to be accepted.
-
setScriptSig
final Unit setScriptSig(Script scriptSig)
The script which pushes values on the stack which will cause the referenced output’s script to be accepted.
-
getSequence
final UInt getSequence()
The sequence number, which suggests to miners which of two conflicting transactions should be preferred, or 0xFFFFFFFF to ignore this feature. This is generally never used since the miner behaviour cannot be enforced.
-
setSequence
final Unit setSequence(UInt sequence)
The sequence number, which suggests to miners which of two conflicting transactions should be preferred, or 0xFFFFFFFF to ignore this feature. This is generally never used since the miner behaviour cannot be enforced.
-
getWitness
final List<List<UByte>> getWitness()
Witness data: an array of byte-arrays. Note that this field is not (de)serialized with the rest of the TxIn in Encodable/Decodable, as it is (de)serialized at the end of the full Transaction. It is (de)serialized with the rest of the TxIn in other (de)serialization routines.
-
setWitness
final Unit setWitness(List<List<UByte>> witness)
Witness data: an array of byte-arrays. Note that this field is not (de)serialized with the rest of the TxIn in Encodable/Decodable, as it is (de)serialized at the end of the full Transaction. It is (de)serialized with the rest of the TxIn in other (de)serialization routines.
-
-