[#wallet-CWallet-AbandonTransaction-0b]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::AbandonTransaction
:relfileprefix: ../../
:mrdocs:

Mark a wallet transaction (and its descendants) as abandoned&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde06718), requires&lowbar;capability(0x7f95061a9458), requires&lowbar;capability(0x7f94f2b79f68), requires&lowbar;capability(0x7f94f0cf8bf8), requires&lowbar;capability(0x7f94fee3b5e8)&rsqb;&rsqb;
bool
AbandonTransaction(xref:wallet/CWalletTx.adoc[CWalletTx]& tx);
----

== Return Value

true if the transaction was marked abandoned&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The wallet transaction to abandon&period;
|===


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