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

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

== Synopsis

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

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

== Return Value

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

== Parameters

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


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