mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add API docs for backend and transaction classes
This commit is contained in:
parent
0aff11fc59
commit
9e9b75a42e
3 changed files with 54 additions and 1 deletions
|
@ -16,6 +16,14 @@ _log = logging.getLogger(__name__)
|
|||
|
||||
|
||||
class JSONRPCDaemon(object):
|
||||
"""
|
||||
JSON RPC backend for Monero daemon
|
||||
|
||||
:param protocol: `http` or `https`
|
||||
:param host: host name or IP
|
||||
:param port: port number
|
||||
:param path: path for JSON RPC requests (should not be changed)
|
||||
"""
|
||||
def __init__(self, protocol='http', host='127.0.0.1', port=18081, path='/json_rpc'):
|
||||
self.url = '{protocol}://{host}:{port}'.format(
|
||||
protocol=protocol,
|
||||
|
@ -99,6 +107,16 @@ class JSONRPCDaemon(object):
|
|||
|
||||
|
||||
class JSONRPCWallet(object):
|
||||
"""
|
||||
JSON RPC backend for Monero wallet (``monero-wallet-rpc``)
|
||||
|
||||
:param protocol: `http` or `https`
|
||||
:param host: host name or IP
|
||||
:param port: port number
|
||||
:param path: path for JSON RPC requests (should not be changed)
|
||||
:param user: username to authenticate with over RPC
|
||||
:param password: password to authenticate with over RPC
|
||||
"""
|
||||
_master_address = None
|
||||
_addresses = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue