jmwallet.utxo_selector
jmwallet.utxo_selector
Interactive UTXO selector TUI.
Provides an fzf-like interface for manually selecting UTXOs with multi-select support using Tab and Enter to confirm.
Classes
Functions
format_utxo_line(utxo: UTXOInfo, max_width: int = 80) -> str
Format a single UTXO for display.
Args: utxo: The UTXO to format max_width: Maximum line width
Returns: Formatted string showing mixdepth, amount, confirmations, outpoint, and label
Source code in jmwallet/src/jmwallet/utxo_selector.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
select_utxos_interactive(utxos: list[UTXOInfo], target_amount: int = 0) -> list[UTXOInfo]
Display an interactive UTXO selector.
Provides an fzf-like interface for selecting UTXOs: - Up/Down or j/k: Navigate - Tab/Space: Toggle selection - Enter: Confirm selection - q/Escape: Cancel - a: Select all - n: Deselect all - g/G: Go to top/bottom
Args: utxos: List of available UTXOs to choose from target_amount: Target amount in sats (0 for sweep, used for display)
Returns: List of selected UTXOs, empty if cancelled
Raises: RuntimeError: If not running in a terminal
Source code in jmwallet/src/jmwallet/utxo_selector.py
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | |