PartiallySignedTransaction

class PartiallySignedTransaction(psbtBase64: String)

A partially signed bitcoin transaction.

Parameters

psbtBase64

The PSBT in base64 format.

Constructors

Link copied to clipboard
fun PartiallySignedTransaction(psbtBase64: String)

Build a new Partially Signed Bitcoin Transaction.

Functions

Link copied to clipboard
fun combine(other: PartiallySignedTransaction): PartiallySignedTransaction

Combines this PartiallySignedTransaction with another PSBT as described by BIP 174. In accordance with BIP 174 this function is commutative i.e., A.combine(B) == B.combine(A)

Link copied to clipboard
fun extractTx(): Transaction

Extract the transaction.

Link copied to clipboard
fun jsonSerialize(): String

Serialize the PSBT data structure as a String of JSON.

Link copied to clipboard
fun serialize(): String

Return the PSBT in string format, using a base64 encoding.

Link copied to clipboard
fun txid(): String

Get the txid of the PSBT.