wownero-python/monero/daemon.py

16 lines
368 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 info(self):
return self._backend.info()
2018-01-15 03:12:53 +00:00
def height(self):
return self._backend.info()['height']
2018-01-22 02:55:08 +00:00
2018-01-25 07:50:09 +00:00
def send_transaction(self, tx):
return self._backend.send_transaction(tx.blob)
2018-01-22 02:55:08 +00:00
def mempool(self):
return self._backend.mempool()