@@ -1210,7 +1210,13 @@ impl Wallet {
1210
1210
self . transactions_with_params ( CanonicalizationParams :: default ( ) )
1211
1211
}
1212
1212
1213
- /// Transactions with params.
1213
+ /// Iterate over relevant and canonical transactions in this wallet.
1214
+ ///
1215
+ /// - `params`: [`CanonicalizationParams`], modifies the wallet's internal logic for determining
1216
+ /// which transaction is canonical. This can be used to resolve conflicts, or to assert that a
1217
+ /// particular transaction should be treated as canonical.
1218
+ ///
1219
+ /// See [`Wallet::transactions`] for more.
1214
1220
pub fn transactions_with_params < ' a > (
1215
1221
& ' a self ,
1216
1222
params : CanonicalizationParams ,
@@ -2486,19 +2492,20 @@ impl Wallet {
2486
2492
Ok ( ( ) )
2487
2493
}
2488
2494
2489
- /// Inserts a transaction into the inner transaction graph with no additional metadata .
2495
+ /// Inserts a transaction into the inner transaction graph, scanning for relevant txouts .
2490
2496
///
2491
2497
/// This is used to inform the wallet of newly created txs before they are known to exist
2492
- /// on chain (or in mempool), which is useful for discovering wallet-owned outputs of
2493
- /// not-yet-canonical transactions.
2498
+ /// on chain or in mempool, which is useful for discovering wallet-owned outputs of
2499
+ /// not-yet-canonical transactions. The inserted transaction carries no additional metadata,
2500
+ /// like the time it was seen or the confirmation height. To later retrieve it, refer to
2501
+ /// [`Wallet::transactions_with_params`].
2494
2502
///
2495
2503
/// The effect of insertion depends on the [relevance] of `tx` as determined by the indexer.
2496
2504
/// If the transaction was newly inserted and a txout matches a derived SPK, then the index
2497
- /// is updated with the relevant outpoint. This means the output may be selected in
2498
- /// subsequent transactions (if selected manually), enabling chains of dependent spends to
2499
- /// occur prior to broadcast time. If none of the outputs are relevant, the transaction is
2500
- /// kept but the index remains unchanged. If the transaction was already present in-graph,
2501
- /// the effect is a no-op.
2505
+ /// is updated with the relevant outpoint(s). If no outputs are relevant, the transaction is
2506
+ /// kept but the index remains unchanged. There should be no change to the wallet balance until
2507
+ /// the transaction is accepted by the network and the wallet is synced. If `tx` was already
2508
+ /// present in-graph, then the effect is a no-op.
2502
2509
///
2503
2510
/// **You must persist the change set staged as a result of this call.**
2504
2511
///
0 commit comments