Interface PsbtInterface
-
- All Implemented Interfaces:
public interface PsbtInterface
A Partially Signed Transaction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
PsbtInterface.Companion
-
Method Summary
Modifier and Type Method Description abstract Psbt
combine(Psbt other)
Combines this Psbt
withother
PSBT as described by BIP 174.abstract Transaction
extractTx()
Extracts the Transaction
from aPsbt
by filling in the available signature information.abstract ULong
fee()
Calculates transaction fee. abstract FinalizedPsbtResult
finalize()
Finalizes the current PSBT and produces a result indicatingwhether the finalization was successful or not. abstract String
jsonSerialize()
Serializes the PSBT into a JSON string representation. abstract String
serialize()
Serialize the PSBT into a base64-encoded string.
-
-
-
Method Detail
-
combine
abstract Psbt combine(Psbt other)
Combines this
Psbt
withother
PSBT as described by BIP 174.In accordance with BIP 174 this function is commutative i.e.,
A.combine(B) == B.combine(A)
-
extractTx
abstract Transaction extractTx()
Extracts the
Transaction
from aPsbt
by filling in the available signature information.ExtractTxError
variants will contain either thePsbt
itself or theTransaction
that was extracted. These can be extracted from the Errors in order to recover. See the error documentation for info on the variants. In general, it covers large fees.
-
fee
abstract ULong fee()
Calculates transaction fee.
'Fee' being the amount that will be paid for mining a transaction with the current inputs and outputs i.e., the difference in value of the total inputs and the total outputs.
MissingUtxo
when UTXO information for any input is not present or is invalid.NegativeFee
if calculated value is negative.FeeOverflow
if an integer overflow occurs.
-
finalize
abstract FinalizedPsbtResult finalize()
Finalizes the current PSBT and produces a result indicating
whether the finalization was successful or not.
-
jsonSerialize
abstract String jsonSerialize()
Serializes the PSBT into a JSON string representation.
-
-