object TxUtil extends BitcoinSLogger

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TxUtil
  2. BitcoinSLogger
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addDummySigs(utx: Transaction, inputInfos: Vector[InputInfo])(implicit ec: ExecutionContext): Future[Transaction]

    Inserts script signatures and (potentially) witness data to a given transaction using DummyECDigitalSignatures for all sigs in order to produce a transaction roughly the size of the expected fully signed transaction.

    Inserts script signatures and (potentially) witness data to a given transaction using DummyECDigitalSignatures for all sigs in order to produce a transaction roughly the size of the expected fully signed transaction. Useful during fee estimation.

    Note that the resulting dummy-signed Transaction will have populated (dummy) witness data when applicable.

  5. def addWitnessData(tx: Transaction, signingInfo: InputSigningInfo[InputInfo]): WitnessTransaction

    Adds the signingInfo's scriptWitness from the transaction, if it has one

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def buildDummyTx(utxos: Vector[InputInfo], outputs: Vector[TransactionOutput])(implicit ec: ExecutionContext): Future[Transaction]
  8. def calcLockTime(utxos: Seq[InputSigningInfo[InputInfo]]): Try[UInt32]

    This helper function calculates the appropriate locktime for a transaction.

    This helper function calculates the appropriate locktime for a transaction. To be able to spend CLTVScriptPubKey's you need to have the transaction's locktime set to the same value (or higher) than the output it is spending. See BIP65 for more info

  9. def calcLockTimeForInfos(utxos: Seq[InputInfo]): Try[UInt32]

    This helper function calculates the appropriate locktime for a transaction.

    This helper function calculates the appropriate locktime for a transaction. To be able to spend CLTVScriptPubKey's you need to have the transaction's locktime set to the same value (or higher) than the output it is spending. See BIP65 for more info

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  12. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  13. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  14. def emptyAllScriptSigs(tx: Transaction): Transaction

    Sets the ScriptSignature for every input in the given transaction to an EmptyScriptSignature as well as sets the witness to an EmptyWitness

    Sets the ScriptSignature for every input in the given transaction to an EmptyScriptSignature as well as sets the witness to an EmptyWitness

    tx

    Transaction to empty signatures

    returns

    Transaction with no signatures

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  18. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  19. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  24. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  25. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def inputIndex(inputInfo: InputInfo, tx: Transaction): Int

    Returns the index of the InputInfo in the transaction

  27. def inputIndexOpt(inputInfo: InputInfo, tx: Transaction): Option[Int]

    Returns the index of the InputInfo in the transaction

  28. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  29. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  30. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. def isRBFEnabled(transaction: Transaction): Boolean
  33. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  34. def isValidFeeRange(estimatedFee: CurrencyUnit, actualFee: CurrencyUnit, feeRate: FeeUnit): Try[Unit]

    Checks if the fee is within a 'valid' range

    Checks if the fee is within a 'valid' range

    estimatedFee

    the estimated amount of fee we should pay

    actualFee

    the actual amount of fee the transaction pays

    feeRate

    the fee rate in satoshis/vbyte we paid per byte on this tx

  35. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  36. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  37. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. def sanityAmountChecks(isSigned: Boolean, inputInfos: Vector[InputInfo], expectedFeeRate: FeeUnit, tx: Transaction): Try[Unit]

    Checks that the creditingAmount >= destinationAmount and then does a sanity check on the transaction's fee

  42. def sanityChecks(isSigned: Boolean, inputInfos: Vector[InputInfo], expectedFeeRate: FeeUnit, tx: Transaction): Try[Unit]

    Runs various sanity checks on a transaction

  43. def sanityDustCheck(tx: Transaction): Try[Unit]

    Checks that no output is beneath the dust threshold

  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  53. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  54. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging

Inherited from BitcoinSLogger

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped