[#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's inputs. == Synopsis Declared in `<wallet/wallet.h>` [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. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction to value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#