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

Outcome of scanning a range of blocks for wallet transactions&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct ScanResult;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CWallet/ScanResult/_04enum.adoc[`Unnamed enum`] 
| Overall status of the scan&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CWallet/ScanResult/last_failed_block.adoc[`last&lowbar;failed&lowbar;block`] 
| Height of the most recent block that could not be scanned due to read errors or pruning&period; Will be set if status is FAILURE, unset if status is SUCCESS, and may or may not be set if status is USER&lowbar;ABORT&period;
| xref:wallet/CWallet/ScanResult/last_scanned_block.adoc[`last&lowbar;scanned&lowbar;block`] 
| Hash and height of most recent block that was successfully scanned&period; Unset if no blocks were scanned due to read errors or the chain being empty&period;
| xref:wallet/CWallet/ScanResult/last_scanned_height.adoc[`last&lowbar;scanned&lowbar;height`] 
| Height matching last&lowbar;scanned&lowbar;block, unset when no block was scanned&period;
| xref:wallet/CWallet/ScanResult/status.adoc[`status`] 
| Overall status of the scan&period;
|===



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