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

Compute the total amount debited from this wallet by a transaction&apos;s inputs&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount]
GetDebit(xref:CTransaction.adoc[CTransaction] const& tx) const;
----

== Return Value

The total debit amount&period;

== Parameters

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


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