You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
393 B
16 lines
393 B
class Daemon(object):
|
|
def __init__(self, backend):
|
|
self._backend = backend
|
|
|
|
def info(self):
|
|
return self._backend.info()
|
|
|
|
def height(self):
|
|
return self._backend.info()['height']
|
|
|
|
def send_transaction(self, tx, relay=True):
|
|
return self._backend.send_transaction(tx.blob, relay=relay)
|
|
|
|
def mempool(self):
|
|
return self._backend.mempool()
|