-
- All Implemented Interfaces:
public final class PartiallySignedTransaction
A partially signed bitcoin transaction.
-
-
Constructor Summary
Constructors Constructor Description PartiallySignedTransaction(String psbtBase64)
Build a new Partially Signed Bitcoin Transaction.
-
Method Summary
Modifier and Type Method Description final String
serialize()
Return the PSBT in string format, using a base64 encoding. final String
txid()
Get the txid of the PSBT. final Transaction
extractTx()
Extract the transaction. final PartiallySignedTransaction
combine(PartiallySignedTransaction other)
Combines this PartiallySignedTransaction with another PSBT as described by BIP 174. final String
jsonSerialize()
Serialize the PSBT data structure as a String of JSON. -
-
Constructor Detail
-
PartiallySignedTransaction
PartiallySignedTransaction(String psbtBase64)
Build a new Partially Signed Bitcoin Transaction.- Parameters:
psbtBase64
- The PSBT in base64 format.
-
-
Method Detail
-
extractTx
final Transaction extractTx()
Extract the transaction.
-
combine
final PartiallySignedTransaction combine(PartiallySignedTransaction other)
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)
-
jsonSerialize
final String jsonSerialize()
Serialize the PSBT data structure as a String of JSON.
-
-
-
-