Transaction

case class Transaction(version: Long, txIn: Seq[TxIn], txOut: Seq[TxOut], lockTime: Long) extends BtcSerializable[Transaction]

Transaction

Value parameters:
lockTime

The block number or timestamp at which this transaction is locked

txIn

Transaction inputs

txOut

Transaction outputs

version

Transaction data format version

Companion:
object
Source:
Transaction.scala
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Value parameters:
input

input to add the tx

Returns:

a new transaction which includes the newly added input

Source:
Transaction.scala
Value parameters:
output

output to add to the tx

Returns:

a new transaction which includes the newly added output

Source:
Transaction.scala
def baseSize(protocolVersion: Long): Int
def hasWitness: Boolean
def isFinal(blockHeight: Long, blockTime: Long): Boolean
Value parameters:
blockHeight

current block height

blockTime

current block time

Returns:

true if the transaction is final

Source:
Transaction.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any
Source:
Transaction.scala
def totalSize(protocolVersion: Long): Int
def transactionData(inputs: List[TxOut], sighashType: Int): ByteVector
def updateSigScript(i: Int, sigScript: ByteVector): Transaction
Value parameters:
i

index of the tx input to update

sigScript

new signature script

Returns:

a new transaction that is of copy of this one but where the signature script of the ith input has been replace by sigscript

Source:
Transaction.scala
def updateSigScript(i: Int, sigScript: Seq[ScriptElt]): Transaction
Value parameters:
i

index of the tx input to update

sigScript

new signature script

Returns:

a new transaction that is of copy of this one but where the signature script of the ith input has been replace by sigscript

Source:
Transaction.scala
def weight(protocolVersion: Long): Int

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product