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
trait BtcSerializable[Transaction]
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
- Value parameters:
- blockHeight
current block height
- blockTime
current block time
- Returns:
true if the transaction is final
- Source:
- Transaction.scala
- 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
- 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