pub struct WalletCreateFundedPsbtOptions {
pub fee_rate: Option<f64>,
pub lock_unspents: Option<bool>,
pub conf_target: Option<u16>,
pub replaceable: Option<bool>,
}
Expand description
Options for creating a funded PSBT with wallet inputs.
Used with wallet_create_funded_psbt
to control funding behavior,
fee estimation, and transaction policies when the wallet automatically
selects inputs to fund the specified outputs.
§Note
All fields are optional and will use Bitcoin Core defaults if not specified. Fee rate takes precedence over confirmation target if both are provided.
Fields§
§fee_rate: Option<f64>
Fee rate in sat/vB (satoshis per virtual byte) for the transaction.
If specified, this overrides the conf_target
parameter for fee estimation.
Must be a positive value representing the desired fee density.
lock_unspents: Option<bool>
Whether to lock the selected UTXOs to prevent them from being spent by other transactions.
When true
, the wallet will temporarily lock the selected unspent outputs
until the transaction is broadcast or manually unlocked. Default is false
.
conf_target: Option<u16>
Target number of confirmations for automatic fee estimation.
Represents the desired number of blocks within which the transaction should
be confirmed. Higher values result in lower fees but longer confirmation times.
Ignored if fee_rate
is specified.
replaceable: Option<bool>
Whether the transaction should be BIP-125 opt-in Replace-By-Fee (RBF) enabled.
When true
, allows the transaction to be replaced with a higher-fee version
before confirmation. Useful for fee bumping if the initial fee proves insufficient.
Trait Implementations§
Source§impl Clone for WalletCreateFundedPsbtOptions
impl Clone for WalletCreateFundedPsbtOptions
Source§fn clone(&self) -> WalletCreateFundedPsbtOptions
fn clone(&self) -> WalletCreateFundedPsbtOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for WalletCreateFundedPsbtOptions
impl Default for WalletCreateFundedPsbtOptions
Source§fn default() -> WalletCreateFundedPsbtOptions
fn default() -> WalletCreateFundedPsbtOptions
Source§impl PartialEq for WalletCreateFundedPsbtOptions
impl PartialEq for WalletCreateFundedPsbtOptions
Source§fn eq(&self, other: &WalletCreateFundedPsbtOptions) -> bool
fn eq(&self, other: &WalletCreateFundedPsbtOptions) -> bool
self
and other
values to be equal, and is used by ==
.