[#CFeeRate-GetFee] = xref:CFeeRate.adoc[CFeeRate]::GetFee :relfileprefix: ../ :mrdocs: Return the fee in satoshis for the given vsize in vbytes. If the calculated fee would have fractional satoshis, then the returned fee will always be rounded up to the nearest satoshi. == Synopsis Declared in `<policy/feerate.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CAmount.adoc[CAmount] GetFee(int32_t virtual_bytes) const; ---- == Return Value Fee in satoshis for the given vsize. == Parameters [cols="1,4"] |=== | Name| Description | *virtual_bytes* | Transaction virtual size, in vB. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#