pub struct WalletCreateFundedPsbt {
pub psbt: Psbt,
pub fee: Amount,
pub change_pos: i32,
}
Expand description
Result of the walletcreatefundedpsbt
RPC method.
Contains a funded PSBT created by the wallet with automatically selected inputs to cover the specified outputs, along with fee information and change output details.
§Note
The PSBT returned is not signed and requires further processing with
wallet_process_psbt
or finalize_psbt
before broadcasting.
Fields§
§psbt: Psbt
The funded PSBT with inputs selected by the wallet.
Contains the unsigned transaction structure with all necessary input and output information for subsequent signing operations.
fee: Amount
The fee amount in BTC paid by this transaction.
Represents the total fee calculated based on the selected inputs, outputs, and the specified fee rate or confirmation target.
change_pos: i32
The position of the change output in the transaction outputs array.
If no change output was created (exact amount match), this will be -1. Otherwise, indicates the zero-based index of the change output.
Trait Implementations§
Source§impl Clone for WalletCreateFundedPsbt
impl Clone for WalletCreateFundedPsbt
Source§fn clone(&self) -> WalletCreateFundedPsbt
fn clone(&self) -> WalletCreateFundedPsbt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more