Return hash of block in best-block-chain at height. Raises IndexError if height is not valid.
(self, height)
| 513 | return self._call('getblockcount') |
| 514 | |
| 515 | def getblockhash(self, height): |
| 516 | """Return hash of block in best-block-chain at height. |
| 517 | |
| 518 | Raises IndexError if height is not valid. |
| 519 | """ |
| 520 | try: |
| 521 | return lx(self._call('getblockhash', height)) |
| 522 | except InvalidParameterError as ex: |
| 523 | raise IndexError('%s.getblockhash(): %s (%d)' % |
| 524 | (self.__class__.__name__, ex.error['message'], ex.error['code'])) |
| 525 | |
| 526 | def getinfo(self): |
| 527 | """Return a JSON object containing various state info""" |
no test coverage detected