We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
drain_wallet
1 parent 0f12110 commit 83be977Copy full SHA for 83be977
src/psbt/params.rs
@@ -270,6 +270,15 @@ impl PsbtParams {
270
self
271
}
272
273
+ /// Drain wallet.
274
+ ///
275
+ /// This will force selection of the available input candidates. As such, the option is only
276
+ /// applied to inputs that meet the spending criteria.
277
+ pub fn drain_wallet(&mut self) -> &mut Self {
278
+ self.drain_wallet = true;
279
+ self
280
+ }
281
+
282
/// Fill in the global [`Psbt::xpub`]s field with the extended keys of the wallet's
283
/// descriptors.
284
///
0 commit comments