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

`GetDebit` overloads

== Synopses

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

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


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

[.small]#xref:wallet/CWallet/GetDebit-0b.adoc[_» more&period;&period;&period;_]#

Returns amount of debit, i&period;e&period; the amount leaving this wallet due to this input


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount]
xref:wallet/CWallet/GetDebit-0a.adoc[GetDebit](xref:CTxIn.adoc[CTxIn] const& txin) const;
----

[.small]#xref:wallet/CWallet/GetDebit-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

* The total debit amount&period;
* The amount debited from the wallet by this input&period;

== Parameters

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


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