user2503: So this is an exercise for fun as we know the block reward already.
But how would you get the bitcoind to show the block reward for the next block?
There is no bitcoind getblockreward but is there a way to discover the block reward from the commands available in bitcoind.

user575: With getblockcount you can get the height of the latest block. Then the reward of the next block is 50 / 2 ^ Floor ((blockcount+1)/210000). In some programming environments 5000000000>>((blockcount+1)/210000) will give the desired result in satoshis.

2503: <p>So this is an exercise for fun as we know the block reward already.</p>

<p>But how would you get the bitcoind to show the block reward for the next block?</p>

<p>There is no bitcoind getblockreward but is there a way to discover the block reward from the commands available in bitcoind.</p>
 575: <p>With getblockcount you can get the height of the latest block. Then the reward of the next block is 50 / 2 ^ Floor ((blockcount+1)/210000). In some programming environments 5000000000>>((blockcount+1)/210000) will give the desired result in satoshis.</p>
