Like I would do wget -O - 2>/dev/null for the main net.

up vote 4 down vote accepted does not track the testnet, but does. In fact the API you're using was originally from, and simply adopted it.

wget -O - 2> /dev/null

or shorter

  • this doesn't work anymore :( gives a 502... – knocte Jun 27 '16 at 7:13

BlockExplorer doesn't work anymore for me (redirecting to which throws a 502) so I found a new alternative:

You have to get the "last_block" element.

(For mainnet:

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.