Class/Object

org.bitcoins.core.protocol.transaction

BaseTransaction

Related Docs: object BaseTransaction | package transaction

Permalink

sealed abstract class BaseTransaction extends Transaction

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BaseTransaction
  2. Transaction
  3. NetworkElement
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def inputs: Seq[TransactionInput]

    Permalink

    The inputs for this transaction

    The inputs for this transaction

    Definition Classes
    Transaction
  2. abstract def lockTime: UInt32

    Permalink

    The locktime for this transaction

    The locktime for this transaction

    Definition Classes
    Transaction
  3. abstract def outputs: Seq[TransactionOutput]

    Permalink

    The outputs for this transaction

    The outputs for this transaction

    Definition Classes
    Transaction
  4. abstract def version: Int32

    Permalink

    The version number for this transaction

    The version number for this transaction

    Definition Classes
    Transaction

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def baseSize: Long

    Permalink

    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
  6. def byteSize: Long

    Permalink

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  7. def bytes: ByteVector

    Permalink

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    BaseTransactionNetworkElement
  8. def bytesLE: ByteVector

    Permalink

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hex: String

    Permalink

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  16. def hexLE: String

    Permalink

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  17. def isCoinbase: Boolean

    Permalink

    Determines if this transaction is a coinbase transaction.

    Determines if this transaction is a coinbase transaction.

    Definition Classes
    Transaction
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def logger: Logger

    Permalink
    Definition Classes
    NetworkElement
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. def totalSize: Long

    Permalink
    Definition Classes
    Transaction
  26. def txId: DoubleSha256Digest

    Permalink

    The sha256(sha256(tx)) of this transaction, Note that this is the little endian encoding of the hash, NOT the big endian encoding shown in block explorers.

    The sha256(sha256(tx)) of this transaction, Note that this is the little endian encoding of the hash, NOT the big endian encoding shown in block explorers. See this link for more info

    Definition Classes
    Transaction
  27. def txIdBE: DoubleSha256DigestBE

    Permalink

    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
  28. def updateInput(idx: Int, i: TransactionInput): Transaction

    Permalink

    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
  29. def vsize: Long

    Permalink

    The transaction's virtual size https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#Transaction_size_calculations

  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def weight: Long

    Permalink

    This is used to indicate how 'expensive' the transction is on the blockchain.

    This is used to indicate how 'expensive' the transction is on the blockchain. This use to be a simple calculation before segwit (BIP141). Each byte in the transaction counted as 4 'weight' units. Now with segwit, the TransactionWitness is counted as 1 weight unit per byte, while other parts of the transaction (outputs, inputs, locktime etc) count as 4 weight units. As we add more witness versions, this may be subject to change. BIP 141 https://github.com/bitcoin/bitcoin/blob/5961b23898ee7c0af2626c46d5d70e80136578d3/src/consensus/validation.h#L96

    Definition Classes
    BaseTransactionTransaction

Inherited from Transaction

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped