wownero-python/monero/daemon.py

16 lines
393 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-30 23:22:26 +00:00
def send_transaction(self, tx, relay=True):
return self._backend.send_transaction(tx.blob, relay=relay)
2018-01-22 02:55:08 +00:00
def mempool(self):
return self._backend.mempool()