bsv-wallet 0.5.0
0.5.0 — 2026-04-11
Native UTXO management, coin selection, and automatic change handling.
The wallet can now fund transactions end-to-end without an external
wallet server — create_action with outputs but no inputs triggers
automatic UTXO selection, fee estimation, and change generation.
Added
- UTXO management pipeline (#264): CoinSelector (exact-match,
smallest-sufficient, largest-first), ChangeGenerator (BRC-29 multi-output
change with dust consolidation), FeeEstimator (size-based sats/kB) - WhatsOnChainProvider — chain UTXO discovery via WhatsOnChain API
- StorageAdapter extensions — 6 new interface methods
- Atomic UTXO locking — closes TOCTOU race in concurrent selection
- Auto-funding in create_action — automatic UTXO selection, fee
estimation, and change generation
Fixed
- Rate-limit release_stale_pending! to avoid O(n) scan per call
- Validate tx_pos bounds in sync_utxos against untrusted API data
- Align identity UTXO filter and signing path with storage schema
- Match TS SDK no_send semantics for pending change and abort cleanup