pub struct WalletProcessPsbtResult {
pub psbt: Option<Psbt>,
pub complete: bool,
pub hex: Option<Transaction>,
}
Expand description
Result of the walletprocesspsbt
and finalizepsbt
RPC methods.
Contains the processed PSBT state, completion status, and optionally the extracted final transaction. This struct handles the Bitcoin Core’s PSBT workflow where PSBTs can be incrementally signed and eventually finalized.
§Note
The psbt
field contains the updated PSBT after processing, while hex
contains the final transaction only when complete
is true
and extraction
is requested. Both fields may be None
depending on the operation context.
Fields§
§psbt: Option<Psbt>
The processed Partially Signed Bitcoin Transaction.
Contains the PSBT after wallet processing with any signatures or input data
that could be added. Will be None
if the transaction was fully extracted
and the PSBT is no longer needed.
complete: bool
Whether the transaction is complete and ready for broadcast.
true
indicates all required signatures have been collected and the
transaction can be finalized. false
means more signatures are needed
before the transaction can be broadcast to the network.
hex: Option<Transaction>
The final transaction ready for broadcast (when complete).
Contains the fully signed and finalized transaction when complete
is true
and extraction was requested. Will be None
for incomplete transactions or
when extraction is not performed.
Trait Implementations§
Source§impl Clone for WalletProcessPsbtResult
impl Clone for WalletProcessPsbtResult
Source§fn clone(&self) -> WalletProcessPsbtResult
fn clone(&self) -> WalletProcessPsbtResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more