MCPcopy
hub / github.com/petertodd/python-bitcoinlib / getbestblockhash

Method getbestblockhash

bitcoin/rpc.py:454–456  ·  view source on GitHub ↗

Return hash of best (tip) block in longest block chain.

(self)

Source from the content-addressed store, hash-verified

452 return int(r*COIN)
453
454 def getbestblockhash(self):
455 """Return hash of best (tip) block in longest block chain."""
456 return lx(self._call('getbestblockhash'))
457
458 def getblockheader(self, block_hash, verbose=False):
459 """Get block header <block_hash>

Callers

nothing calls this directly

Calls 2

lxFunction · 0.90
_callMethod · 0.45

Tested by

no test coverage detected