object TxUtil

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TxUtil
  2. AnyRef
  3. 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]): 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]): 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 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

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def inputIndex(inputInfo: InputInfo, previousOutputMap: PreviousOutputMap): Int
  18. def inputIndex(inputInfo: InputInfo, tx: Transaction): Int

    Returns the index of the InputInfo in the transaction

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

    Returns the index of the InputInfo in the transaction

  20. def inputIndexOpt(inputInfo: InputInfo, previousOutputMap: PreviousOutputMap): Option[Int]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def isRBFEnabled(transaction: Transaction): Boolean
  23. 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

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. 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

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

    Runs various sanity checks on a transaction

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

    Checks that no output is beneath the dust threshold

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped