[#wallet-GetRequiredFee]
= xref:wallet.adoc[wallet]::GetRequiredFee
:relfileprefix: ../
:mrdocs:

Return the minimum required absolute fee for this size based on the required fee rate

== Synopsis

Declared in `&lt;wallet&sol;fees&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount]
GetRequiredFee(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    unsigned int nTxBytes);
----

== Return Value

The minimum required absolute fee for the given size&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet whose required fee rate is used&period;
| *nTxBytes*
| The transaction size in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
