going the other way is easy:
Code: Select all
namecoind getblockhash <index>
Height is not an attribute on each block and no method appears to return it.
The closest two are:
Code: Select all
namecoind getblockcount
which:
"Returns the number of blocks in the longest block chain."
and
namecoind getblocknumber
which:
"Returns the block number of the latest block in the longest block chain."
Is there something I'm missing here? Other coins do not appear to lack this basic functionality.