See https://github.com/bitcoindevkit/bdk_wallet/pull/258 The APIs are `TxBuilder::exclude_unconfirmed` and `TxBuilder::exclude_below_confirmations`. Those are easy to implement and IMO useful.