[#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. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/CWallet/ScanResult.adoc[ScanResult] ScanForWalletTransactions( xref:uint256.adoc[uint256] const& start_block, int start_height, std::optional<int> max_height, xref:wallet/WalletRescanReserver.adoc[WalletRescanReserver] const& reserver, bool save_progress); ---- == Return Value The result of the scan. == Parameters [cols="1,4"] |=== | Name| Description | *start_block* | Hash of the first block to scan. | *start_height* | Height of the first block to scan. | *max_height* | Optional last height to scan, or nullopt for the tip. | *reserver* | The reservation guarding this rescan. | *save_progress* | Whether to persist scan progress to disk. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#