case class WitnessTransaction(version: Int32, inputs: Vector[TransactionInput], outputs: Vector[TransactionOutput], lockTime: UInt32, witness: TransactionWitness) extends Transaction with Product with Serializable
- Alphabetic
- By Inheritance
- WitnessTransaction
- Serializable
- Product
- Equals
- Transaction
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new WitnessTransaction(version: Int32, inputs: Vector[TransactionInput], outputs: Vector[TransactionOutput], lockTime: UInt32, witness: TransactionWitness)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def baseSize: Long
Base transaction size is the size of the transaction serialised with the witness data stripped https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
Base transaction size is the size of the transaction serialised with the witness data stripped https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
- Definition Classes
- Transaction
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- val bytes: ByteVector
Writes a WitnessTransaction to a hex string This is unique from BaseTransaction.bytes in the fact that it adds a 'marker' and 'flag' to indicate that this tx is a WitnessTransaction and has extra witness data attached to it.
Writes a WitnessTransaction to a hex string This is unique from BaseTransaction.bytes in the fact that it adds a 'marker' and 'flag' to indicate that this tx is a WitnessTransaction and has extra witness data attached to it. See BIP144 for more info. Functionality inside of Bitcoin Core: https://github.com/bitcoin/bitcoin/blob/e8cfe1ee2d01c493b758a67ad14707dca15792ea/src/primitives/transaction.h#L282-L287s
- Definition Classes
- WitnessTransaction → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- val inputs: Vector[TransactionInput]
The inputs for this transaction
The inputs for this transaction
- Definition Classes
- WitnessTransaction → Transaction
- def isCoinbase: Boolean
Determines if this transaction is a coinbase transaction.
Determines if this transaction is a coinbase transaction.
- Definition Classes
- Transaction
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lockTime: UInt32
The locktime for this transaction
The locktime for this transaction
- Definition Classes
- WitnessTransaction → Transaction
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outputs: Vector[TransactionOutput]
The outputs for this transaction
The outputs for this transaction
- Definition Classes
- WitnessTransaction → Transaction
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val toBaseTx: BaseTransaction
- Definition Classes
- Transaction
- lazy val totalOutput: CurrencyUnit
- Definition Classes
- Transaction
- def totalSize: Long
- Definition Classes
- Transaction
- def txId: DoubleSha256Digest
The txId for the witness transaction from satoshi's original serialization
The txId for the witness transaction from satoshi's original serialization
- Definition Classes
- WitnessTransaction → Transaction
- def txIdBE: DoubleSha256DigestBE
This is the BIG ENDIAN encoding for the txid.
This is the BIG ENDIAN encoding for the txid. This is commonly used for RPC interfaces and block explorers, this encoding is NOT used at the protocol level For more info see: https://bitcoin.stackexchange.com/questions/2063/why-does-the-bitcoin-protocol-use-the-little-endian-notation
- Definition Classes
- Transaction
- def updateInput(idx: Int, i: TransactionInput): Transaction
Updates the input at the given index and returns the new transaction with that input updated
Updates the input at the given index and returns the new transaction with that input updated
- Definition Classes
- Transaction
- def updateWitness(idx: Int, scriptWit: ScriptWitness): WitnessTransaction
Updates the ScriptWitness at the given index and returns a new WitnessTransaction with it's witness vector updated
- val version: Int32
The version number for this transaction
The version number for this transaction
- Definition Classes
- WitnessTransaction → Transaction
- def vsize: Long
The transaction's virtual size https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
The transaction's virtual size https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations
- Definition Classes
- Transaction
- def wTxId: DoubleSha256Digest
The witness transaction id as defined by BIP141
- def wTxIdBE: DoubleSha256DigestBE
Returns the big endian encoding of the wtxid
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def weight: Long
Weight calculation in bitcoin for witness txs https://github.com/bitcoin/bitcoin/blob/5961b23898ee7c0af2626c46d5d70e80136578d3/src/consensus/validation.h#L96
Weight calculation in bitcoin for witness txs https://github.com/bitcoin/bitcoin/blob/5961b23898ee7c0af2626c46d5d70e80136578d3/src/consensus/validation.h#L96
- Definition Classes
- WitnessTransaction → Transaction
- val witness: TransactionWitness