[#wallet-CWallet-SetAddressPreviouslySpent] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SetAddressPreviouslySpent :relfileprefix: ../../ :mrdocs: Record whether a destination has been previously spent. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1e599728), requires_capability(0x7f2e11aaa4e8), requires_capability(0x7f2e16a002d8), requires_capability(0x7f2e15f2f778), requires_capability(0x7f2e12c6e408)]] bool SetAddressPreviouslySpent( xref:wallet/WalletBatch.adoc[WalletBatch]& batch, xref:CTxDestination.adoc[CTxDestination] const& dest, bool used); ---- == Return Value true if the state was written. == Parameters [cols="1,4"] |=== | Name| Description | *batch* | The database batch to write through. | *dest* | The destination to update. | *used* | Whether the destination is marked as spent. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#