user3728: How do I figure out the current number of blocks?

user3187: If you don't mind using someone else's server you can just use the response from a HTTP call to http://blockexplorer.com/q/getblockcount

user2306: You don't need to modify the bitcoin client at all - you can use JSON-RPC and call getblockcount.

3728: <p>How do I figure out the current number of blocks?</p>
 3187: <p>If you don't mind using someone else's server you can just use the response from a HTTP call to <a href="http://blockexplorer.com/q/getblockcount" rel="nofollow">http://blockexplorer.com/q/getblockcount</a></p>
 2306: <p>You don't need to modify the bitcoin client at all - you can use <a href="https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29" rel="nofollow">JSON-RPC</a> and call <a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list" rel="nofollow">getblockcount</a>.</p>
