PartiallySignedBitcoinTransaction

class PartiallySignedBitcoinTransaction(psbtBase64: String)

A partially signed bitcoin transaction.

Parameters

psbtBase64

The PSBT in base64 format.

Constructors

Link copied to clipboard
fun PartiallySignedBitcoinTransaction(psbtBase64: String)

Build a new Partially Signed Bitcoin Transaction.

Functions

Link copied to clipboard

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(): List<UByte>

Return the transaction as bytes.

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.