[#wallet-CWallet-GetDebit-01] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetDebit :relfileprefix: ../../ :mrdocs: `GetDebit` overloads == Synopses Declared in `<wallet/wallet.h>` Compute the total amount debited from this wallet by a transaction's inputs. [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..._]# Returns amount of debit, i.e. 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..._]# == Return Value * The total debit amount. * The amount debited from the wallet by this input. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction to value. | *txin* | The transaction input to value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#