TxIn

data class TxIn(    val outPoint: OutPoint,     val signatureScript: ByteVector,     val sequence: Long,     val witness: ScriptWitness = ScriptWitness.empty) : BtcSerializable<TxIn>

Transaction input

Parameters

outPoint

Previous output transaction reference

signatureScript

Signature script which should match the public key script of the output that we want to spend

sequence

Transaction version as defined by the sender. Intended for "replacement" of transactions when information is updated before inclusion into a block. Repurposed for OP_CSV (see BIPs 68 & 112)

witness

Transaction witness (i.e. what is in sig script for standard transactions).

Constructors

Link copied to clipboard
fun TxIn(    outPoint: OutPoint,     signatureScript: ByteArray,     sequence: Long)
Link copied to clipboard
fun TxIn(outPoint: OutPoint, sequence: Long)
Link copied to clipboard
fun TxIn(    outPoint: OutPoint,     signatureScript: List<ScriptElt>,     sequence: Long)
Link copied to clipboard
fun TxIn(    outPoint: OutPoint,     signatureScript: ByteVector,     sequence: Long,     witness: ScriptWitness = ScriptWitness.empty)

Types

Link copied to clipboard
object Companion : BtcSerializer<TxIn>

Functions

Link copied to clipboard
open override fun serializer(): BtcSerializer<TxIn>
Link copied to clipboard
fun updateSignatureScript(signatureScript: ByteVector): TxIn
fun updateSignatureScript(signatureScript: ByteArray): TxIn
Link copied to clipboard
fun updateWitness(witness: ScriptWitness): TxIn
Link copied to clipboard
fun weight(): Int

Properties

Link copied to clipboard
val hasWitness: Boolean
Link copied to clipboard
val isFinal: Boolean
Link copied to clipboard
val outPoint: OutPoint
Link copied to clipboard
val sequence: Long
Link copied to clipboard
val signatureScript: ByteVector
Link copied to clipboard
val witness: ScriptWitness