GetBlockSubsidy

Compute the block subsidy (newly created coins) for a block at a given height.

Synopsis

Declared in <validation.h>

CAmount
GetBlockSubsidy(
    int nHeight,
    Consensus::Params const& consensusParams);

Return Value

The block subsidy in satoshis.

Parameters

NameDescription
nHeightHeight of the block whose subsidy is being computed.
consensusParamsConsensus parameters, which define the halving interval.