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.
remove_utxo
1 parent 28a88b0 commit a70f638Copy full SHA for a70f638
wallet/src/psbt/params.rs
@@ -58,6 +58,17 @@ impl PsbtParams {
58
self
59
}
60
61
+ /// Remove a UTXO from the currently selected inputs.
62
+ pub fn remove_utxo(&mut self, outpoint: OutPoint) -> &mut Self {
63
+ self.utxos.remove(&outpoint);
64
+ self
65
+ }
66
+
67
+ /// Get the current input selection.
68
+ pub fn utxos(&mut self) -> &HashSet<OutPoint> {
69
+ &self.utxos
70
71
72
/// Add the spend [`Assets`].
73
///
74
/// Assets are required to create a spending plan for an output controlled by the wallet's
0 commit comments