We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47b87a5 commit 8d6d739Copy full SHA for 8d6d739
bitcoin/rpc.py
@@ -323,6 +323,10 @@ def getblock(self, block_hash):
323
(self.__class__.__name__, ex.error['message'], ex.error['code']))
324
return CBlock.deserialize(unhexlify(r))
325
326
+ def getblockcount(self):
327
+ """Return the number of blocks in the longest block chain"""
328
+ return self._call('getblockcount')
329
+
330
def getblockhash(self, height):
331
"""Return hash of block in best-block-chain at height.
332
release-notes.md
@@ -12,7 +12,7 @@ Breaking API changes:
12
13
New features:
14
15
-* New RPC calls: getbestblockhash, getmininginfo
+* New RPC calls: getbestblockhash, getblockcount, getmininginfo
16
17
v0.4.0
18
======
0 commit comments