[#wallet-TxGetCredit] = xref:wallet.adoc[wallet]::TxGetCredit :relfileprefix: ../ :mrdocs: Returns the total credit of a transaction's outputs owned by the wallet. == Synopsis Declared in `<wallet/receive.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CAmount.adoc[CAmount] TxGetCredit( xref:wallet/CWallet.adoc[CWallet] const& wallet, xref:CTransaction.adoc[CTransaction] const& tx); ---- == Return Value The sum of the credited amounts. == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet to check ownership against. | *tx* | The transaction to evaluate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#