wownero-python/monero/daemon.py

16 lines
391 B
Python
Raw Normal View History

2018-01-14 22:51:18 +00:00
class Daemon(object):
def __init__(self, backend):
self._backend = backend
def get_info(self):
return self._backend.get_info()
2018-01-15 03:12:53 +00:00
2018-01-22 02:55:08 +00:00
def get_height(self):
return self._backend.get_info()['height']
2018-01-15 03:12:53 +00:00
def send_transaction(self, blob):
return self._backend.send_transaction(blob)
2018-01-22 02:55:08 +00:00
def get_mempool(self):
return self._backend.get_mempool()