case class PSBT(globalMap: GlobalPSBTMap, inputMaps: Vector[InputPSBTMap], outputMaps: Vector[OutputPSBTMap]) extends NetworkElement with Product with Serializable
- Alphabetic
- By Inheritance
- PSBT
- Serializable
- Product
- Equals
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PSBT(globalMap: GlobalPSBTMap, inputMaps: Vector[InputPSBTMap], outputMaps: Vector[OutputPSBTMap])
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
- def addFinalizedScriptWitnessToInput(scriptSignature: ScriptSignature, scriptWitness: ScriptWitness, index: Int): PSBT
- def addKeyPathSignature(partialSignature: PartialSignature[SchnorrDigitalSignature], inputIndex: Int): PSBT
- 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
- 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
- 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
- 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
- def addScriptWitnessToInput(scriptWitness: ScriptWitness, index: Int): PSBT
- def addScriptWitnessToOutput(scriptWitness: ScriptWitness, index: Int): PSBT
- 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
- def addSignature(partialSignature: PartialSignature[ECDigitalSignature], inputIndex: Int): PSBT
- def addSignature(pubKey: ECPublicKey, sig: ECDigitalSignature, inputIndex: Int): PSBT
- def addSignatures(partialSignatures: Vector[PartialSignature[ECDigitalSignature]], inputIndex: Int): PSBT
Adds all the PartialSignatures to the input map at the given index
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val base64: String
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- val bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- PSBT → 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()
- 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
- def combinePSBTAndValidate(other: PSBT): PSBT
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- PSBT → Equals → AnyRef → Any
- lazy val estimateSatsPerVByte: Option[SatoshisPerVirtualByte]
- lazy val estimateVSize: Option[Long]
- lazy val estimateWeight: Option[Long]
- def extractTransaction: Transaction
- 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.
- lazy val feeOpt: Option[CurrencyUnit]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finalizeInput(index: Int): Try[PSBT]
- def finalizePSBT: Try[PSBT]
Finalizes this PSBT if possible, returns a Failure otherwise
Finalizes this PSBT if possible, returns a Failure otherwise
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getPrevOutputMap(): PreviousOutputMap
- 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
- val globalMap: GlobalPSBTMap
- 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 inputMaps: Vector[InputPSBTMap]
- def isFinalized: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- lazy val nextRole: PSBTRole
The next PSBTRole that should be used for this PSBT
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val outputMaps: Vector[OutputPSBTMap]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def sign(inputIndex: Int, signer: Sign, conditionalPath: ConditionalPath = ConditionalPath.NoCondition): 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def transaction: Transaction
- def validateBIP143Vulnerability: PSBT
- def verifyFinalizedInput(index: Int): Boolean
- def version: UInt32
- 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()