case class PSBT(globalMap: GlobalPSBTMap, inputMaps: Vector[InputPSBTMap], outputMaps: Vector[OutputPSBTMap]) extends NetworkElement with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PSBT
  2. Serializable
  3. Product
  4. Equals
  5. NetworkElement
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PSBT(globalMap: GlobalPSBTMap, inputMaps: Vector[InputPSBTMap], outputMaps: Vector[OutputPSBTMap])

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 addFinalizedScriptWitnessToInput(scriptSignature: ScriptSignature, scriptWitness: ScriptWitness, index: Int): PSBT
  5. def addKeyPathToInput(extKey: ExtKey, path: BIP32Path, pubKey: ECPublicKey, index: Int): PSBT

    Adds the BIP32Path to the indexed InputPSBTMap to the BIP32DerivationPath field

    Adds the BIP32Path to the indexed InputPSBTMap to the BIP32DerivationPath field

    extKey

    ExtKey to derive key from

    path

    path of key to add to PSBT

    index

    index of the InputPSBTMap to add the BIP32Path to

    returns

    PSBT with added BIP32Path

  6. def addKeyPathToOutput(extKey: ExtKey, path: BIP32Path, pubKey: ECPublicKey, index: Int): PSBT

    Adds the BIP32Path to the indexed OutputPSBTMap to the BIP32DerivationPath field

    Adds the BIP32Path to the indexed OutputPSBTMap to the BIP32DerivationPath field

    extKey

    ExtKey to derive key from

    path

    path of key to add to PSBT

    index

    index of the OutputPSBTMap to add the BIP32Path to

    returns

    PSBT with added BIP32Path

  7. def addRedeemOrWitnessScriptToInput(script: ScriptPubKey, index: Int): PSBT

    Adds script to the indexed InputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    Adds script to the indexed InputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    script

    ScriptPubKey to add to PSBT

    index

    index of the InputPSBTMap to add script to

    returns

    PSBT with added script

  8. def addRedeemOrWitnessScriptToOutput(script: ScriptPubKey, index: Int): PSBT

    Adds script to the indexed OutputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    Adds script to the indexed OutputPSBTMap to either the RedeemScript or WitnessScript field depending on the script and available information in the PSBT

    script

    ScriptPubKey to add to PSBT

    index

    index of the OutputPSBTMap to add script to

    returns

    PSBT with added script

  9. def addScriptWitnessToInput(scriptWitness: ScriptWitness, index: Int): PSBT
  10. def addScriptWitnessToOutput(scriptWitness: ScriptWitness, index: Int): PSBT
  11. def addSigHashTypeToInput(hashType: HashType, index: Int): PSBT

    hashType

    HashType to add to the input

    index

    index of the InputPSBTMap to add the HashType to

    returns

    PSBT with added HashType

  12. def addSignature(partialSignature: PartialSignature, inputIndex: Int): PSBT
  13. def addSignature(pubKey: ECPublicKey, sig: ECDigitalSignature, inputIndex: Int): PSBT
  14. def addSignatures(partialSignatures: Vector[PartialSignature], inputIndex: Int): PSBT

    Adds all the PartialSignatures to the input map at the given index

  15. def addUTXOToInput(tx: Transaction, index: Int): PSBT

    Adds tx to the indexed InputPSBTMap to either the NonWitnessOrUnknownUTXO or WitnessUTXO field depending on the tx and available information in the PSBT

    Adds tx to the indexed InputPSBTMap to either the NonWitnessOrUnknownUTXO or WitnessUTXO field depending on the tx and available information in the PSBT

    tx

    Transaction to add to PSBT

    index

    index of the InputPSBTMap to add tx to

    returns

    PSBT with added tx

  16. def addWitnessUTXOToInput(output: TransactionOutput, index: Int): PSBT

    Adds the TransactionOutput to the indexed InputPSBTMap to the WitnessUTXO field

    Adds the TransactionOutput to the indexed InputPSBTMap to the WitnessUTXO field

    output

    TransactionOutput to add to PSBT

    index

    index of the InputPSBTMap to add tx to

    returns

    PSBT with added tx

  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. val base64: String
  19. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  20. val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    PSBTNetworkElement
  21. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  23. def combinePSBT(other: PSBT): PSBT

    Combiner defined by https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#combiner Takes another PSBT and adds all records that are not contained in this PSBT A record's distinctness is determined by its key

    Combiner defined by https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#combiner Takes another PSBT and adds all records that are not contained in this PSBT A record's distinctness is determined by its key

    other

    PSBT to be combined with

    returns

    A PSBT with the combined data of the two PSBTs

  24. def combinePSBTAndValidate(other: PSBT): PSBT
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(other: Any): Boolean
    Definition Classes
    PSBT → Equals → AnyRef → Any
  27. lazy val estimateSatsPerVByte: Option[SatoshisPerVirtualByte]
  28. lazy val estimateVSize: Option[Long]
  29. lazy val estimateWeight: Option[Long]
  30. def extractTransaction: Transaction

  31. def extractTransactionAndValidate: Try[Transaction]

    Extracts the serialized from the serialized, fully signed transaction from this PSBT and validates the script signatures using the ScriptInterpreter.

    Extracts the serialized from the serialized, fully signed transaction from this PSBT and validates the script signatures using the ScriptInterpreter. Only inputs for which UTXO records are present get validated.

    Note: This PSBT must be finalized.

  32. lazy val feeOpt: Option[CurrencyUnit]
  33. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. def finalizeInput(index: Int): Try[PSBT]
  35. def finalizePSBT: Try[PSBT]

    Finalizes this PSBT if possible, returns a Failure otherwise

    Finalizes this PSBT if possible, returns a Failure otherwise

    See also

    https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#input-finalizer

  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def getSpendingInfoUsingSigners(index: Int, signers: Vector[Sign], conditionalPath: ConditionalPath = ConditionalPath.NoCondition): ScriptSignatureParams[InputInfo]

    Takes the InputPSBTMap at the given index and returns a NewSpendingInfoFull that can be used to sign the input

    Takes the InputPSBTMap at the given index and returns a NewSpendingInfoFull that can be used to sign the input

    index

    index of the InputPSBTMap

    signers

    Signers that will be used to sign the input

    conditionalPath

    Path that should be used for the script

    returns

    A corresponding NewSpendingInfoFull

  38. val globalMap: GlobalPSBTMap
  39. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  40. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  41. val inputMaps: Vector[InputPSBTMap]
  42. def isFinalized: Boolean
  43. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. lazy val nextRole: PSBTRole

    The next PSBTRole that should be used for this PSBT

  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. val outputMaps: Vector[OutputPSBTMap]
  49. def productElementNames: Iterator[String]
    Definition Classes
    Product
  50. def sign(inputIndex: Int, signer: Sign, conditionalPath: ConditionalPath = ConditionalPath.NoCondition, isDummySignature: Boolean = false): PSBT

    Signs the PSBT's input at the given input with the signer, then adds it to the PSBT in a PartialSignature record

    Signs the PSBT's input at the given input with the signer, then adds it to the PSBT in a PartialSignature record

    inputIndex

    Index of input to sign

    signer

    Function or private key used to sign the PSBT

    conditionalPath

    Represents the spending branch being taken in a ScriptPubKey's execution

    isDummySignature

    Do not sign the tx for real, just use a dummy signature, this is useful for fee estimation

  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. def transaction: Transaction
  53. def validateBIP143Vulnerability: PSBT
  54. def verifyFinalizedInput(index: Int): Boolean
  55. def version: UInt32
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped