Added some additional rpc commands to support zcashd monitoring

This commit is contained in:
Ben Wilson 2019-11-06 10:19:09 -05:00
parent 4ec6110f7d
commit 1693503598
1 changed files with 18 additions and 0 deletions

View File

@ -42,6 +42,9 @@ class ZDaemon(object):
def getBlockByHash(self, blockhash):
return self._call('getblock', blockhash)
def getrawtransaction(self, txid):
return self._call('getrawtransaction', txid, 1)
def getBlockByHeight(self, blockheight):
return self.getBlockByHash(self.getBlockHash(blockheight))
@ -49,6 +52,21 @@ class ZDaemon(object):
def getNetworkHeight(self):
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):
return self._call('getdifficulty')