Returns the change amount an output contributes.
Declared in <wallet/receive.h>
[[requires_capability(0x7f2e11afc048)]]
CAmount
OutputGetChange(
CWallet const& wallet,
CTxOut const& txout);
The change amount, or zero if the output is not change.
| Name | Description |
|---|---|
| wallet | The wallet to check against. |
| txout | The output to evaluate. |