@@ -1210,7 +1210,13 @@ impl Wallet {
12101210 self . transactions_with_params ( CanonicalizationParams :: default ( ) )
12111211 }
12121212
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.
12141220 pub fn transactions_with_params < ' a > (
12151221 & ' a self ,
12161222 params : CanonicalizationParams ,
@@ -2486,19 +2492,20 @@ impl Wallet {
24862492 Ok ( ( ) )
24872493 }
24882494
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 .
24902496 ///
24912497 /// 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`].
24942502 ///
24952503 /// The effect of insertion depends on the [relevance] of `tx` as determined by the indexer.
24962504 /// 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.
25022509 ///
25032510 /// **You must persist the change set staged as a result of this call.**
25042511 ///
0 commit comments