Add proxy and describe how to use TOR, close #55

This commit is contained in:
Michał Sałaban 2019-12-29 23:16:22 +01:00
parent 50ab45e97e
commit 39e1eb7a84
5 changed files with 28 additions and 6 deletions

View file

@ -17,6 +17,23 @@ wallet, the only available backend is JSON RPC.
Also, the ``info()`` method will return a dictionary with details about the current daemon status.
Connecting via proxy (or TOR)
-----------------------------
The backend also accepts optional ``proxy_url`` keyword. A prime example of use is to route
your traffic via TOR:
.. code-block:: python
In [3]: daemon = Daemon(JSONRPCDaemon(host='xmrag4hf5xlabmob.onion', proxy_url='socks5h://127.0.0.1:9050'))
In [4]: daemon.height()
Out[4]: 1999790
Please refer to the docs of underlying `requests`_ library for more info on proxies.
.. _`requests`: http://docs.python-requests.org/
Sending prepared transactions
-----------------------------