[#wallet-CWallet-ScanForWalletTransactions]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::ScanForWalletTransactions
:relfileprefix: ../../
:mrdocs:

Scan a range of blocks for transactions relevant to this wallet&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/CWallet/ScanResult.adoc[ScanResult]
ScanForWalletTransactions(
    xref:uint256.adoc[uint256] const& start&lowbar;block,
    int start&lowbar;height,
    std::optional&lt;int&gt; max&lowbar;height,
    xref:wallet/WalletRescanReserver.adoc[WalletRescanReserver] const& reserver,
    bool save&lowbar;progress);
----

== Return Value

The result of the scan&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *start&lowbar;block*
| Hash of the first block to scan&period;
| *start&lowbar;height*
| Height of the first block to scan&period;
| *max&lowbar;height*
| Optional last height to scan, or nullopt for the tip&period;
| *reserver*
| The reservation guarding this rescan&period;
| *save&lowbar;progress*
| Whether to persist scan progress to disk&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
