[#GetBlockSubsidy]
= GetBlockSubsidy
:mrdocs:

Compute the block subsidy (newly created coins) for a block at a given height&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount]
GetBlockSubsidy(
    int nHeight,
    xref:Consensus/Params.adoc[Consensus::Params] const& consensusParams);
----

== Return Value

The block subsidy in satoshis&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nHeight*
| Height of the block whose subsidy is being computed&period;
| *consensusParams*
| Consensus parameters, which define the halving interval&period;
|===


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