user11468: Using the bitcoin client's JSON API (or any other altcoin client) how do I find out the reward given for finding that block?

user13520: All you need is the block number. The reward started at 50 and it halves every 210k blocks. Currently it's at 25, and as I write this the current block number is 286459. For other altcoins, you need to know the schedule.

user1307: The information you get for a getblock call doesn't seem to include the block reward. You could find it with a gettransaction call for the first transaction, but bitcoind only allows lookup for transactions in your own wallet, so that won't work either.
So indeed, as Diego points out, the only option is to look at the block height. This wiki page lists the different reward values for the different block height intervals.

11468: <p>Using the bitcoin client's JSON API (or any other altcoin client) how do I find out the reward given for finding that block?</p>
 13520: <p>All you need is the block number. The reward started at 50 and it halves every 210k blocks. Currently it's at 25, and as I write this the current block number is 286459. For other altcoins, you need to know the schedule.</p>
 1307: <p>The information you get for a <code>getblock</code> call doesn't seem to include the block reward. You could find it with a <code>gettransaction</code> call for the first transaction, but bitcoind only allows lookup for transactions in your own wallet, so that won't work either.</p>

<p>So indeed, as Diego points out, the only option is to look at the block height. <a href="https://en.bitcoin.it/wiki/Controlled_supply#Projected_Bitcoins_Long_Term" rel="nofollow">This wiki page</a> lists the different reward values for the different block height intervals.</p>
