[#wallet-OutputGetCredit] = xref:wallet.adoc[wallet]::OutputGetCredit :relfileprefix: ../ :mrdocs: Returns the credit an output contributes if it belongs to the wallet. == Synopsis Declared in `<wallet/receive.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CAmount.adoc[CAmount] OutputGetCredit( xref:wallet/CWallet.adoc[CWallet] const& wallet, xref:CTxOut.adoc[CTxOut] const& txout); ---- == Return Value The credited amount, or zero if the output is not owned. == Parameters [cols="1,4"] |=== | Name| Description | *wallet* | The wallet to check ownership against. | *txout* | The output to evaluate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#