[#wallet-WalletBatch-WriteAddressPreviouslySpent]
= xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteAddressPreviouslySpent
:relfileprefix: ../../
:mrdocs:

Records whether an address has previously been spent from&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WriteAddressPreviouslySpent(
    xref:CTxDestination.adoc[CTxDestination] const& dest,
    bool previously&lowbar;spent);
----

== Return Value

true if the record was written&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| The address destination&period;
| *previously&lowbar;spent*
| Whether the address has been spent from&period;
|===


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