[#wallet-WalletBatch-WriteAddressPreviouslySpent] = xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteAddressPreviouslySpent :relfileprefix: ../../ :mrdocs: Records whether an address has previously been spent from. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool WriteAddressPreviouslySpent( xref:CTxDestination.adoc[CTxDestination] const& dest, bool previously_spent); ---- == Return Value true if the record was written. == Parameters [cols="1,4"] |=== | Name| Description | *dest* | The address destination. | *previously_spent* | Whether the address has been spent from. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#