Ejemplo n.º 1
0
 def getinfo(self):
     """
     Returns an :class:`~bitcoinrpc.data.ServerInfo` object containing various state info.
     """
     try:
         return ServerInfo(**self.proxy.getinfo())
     except JSONRPCException, e:
         raise _wrap_exception(e.error)
Ejemplo n.º 2
0
 def getinfo(self):
     """
     Returns an :class:`~bitcoinrpc.data.ServerInfo` object containing various state info.
     """
     return ServerInfo(**self.proxy.getinfo())