Added some additional rpc commands to support zcashd monitoring
This commit is contained in:
parent
4ec6110f7d
commit
1693503598
|
@ -42,6 +42,9 @@ class ZDaemon(object):
|
||||||
def getBlockByHash(self, blockhash):
|
def getBlockByHash(self, blockhash):
|
||||||
return self._call('getblock', blockhash)
|
return self._call('getblock', blockhash)
|
||||||
|
|
||||||
|
def getrawtransaction(self, txid):
|
||||||
|
return self._call('getrawtransaction', txid, 1)
|
||||||
|
|
||||||
def getBlockByHeight(self, blockheight):
|
def getBlockByHeight(self, blockheight):
|
||||||
return self.getBlockByHash(self.getBlockHash(blockheight))
|
return self.getBlockByHash(self.getBlockHash(blockheight))
|
||||||
|
|
||||||
|
@ -49,6 +52,21 @@ class ZDaemon(object):
|
||||||
def getNetworkHeight(self):
|
def getNetworkHeight(self):
|
||||||
return self._call('getblockcount')
|
return self._call('getblockcount')
|
||||||
|
|
||||||
|
def getinfo(self):
|
||||||
|
return self._call('getinfo')
|
||||||
|
|
||||||
|
def getchaintips(self):
|
||||||
|
return self._call('getchaintips')
|
||||||
|
|
||||||
|
def getmempoolinfo(self):
|
||||||
|
return self._call('getmempoolinfo')
|
||||||
|
|
||||||
|
def getnetworksolps(self):
|
||||||
|
return self._call('getnetworksolps')
|
||||||
|
|
||||||
|
def getnettotals(self):
|
||||||
|
return self._call('getnettotals')
|
||||||
|
|
||||||
def getNetworkDifficulty(self):
|
def getNetworkDifficulty(self):
|
||||||
return self._call('getdifficulty')
|
return self._call('getdifficulty')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue