2
I want to get a Dogecoin service up that holds, sends, and checks the balances of Dogecoin wallets. I plan on running this service via the Django Web framework so I need Python libraries for dealing with Dogecoin.
I've already found a Python wallet generator for all the top Crypto-currencies: https://github.com/onenameio/coinkit
now I need to find a way to send money using any public and private key for Dogecoin. I've found this Python library that seems to have the ability to connect to a Dogecoin-Qt:
http://jcsaaddupuy.github.io/dogecoin-python/doc/usage.html
But this documentation is completely leaves out the wallet itself. Right away it tells you to run this line of Python code:
>>> conn = dogecoinrpc.connect_to_local()
But what local dogecoin exactly is this thing connecting to?? Is it connecting to the Dogecoin-Qt app which is already installed on my OS X computer?
So if I enter that line of Python code in the Python shell interpreter, it seems to go through without any problems. And so immediately in the documentation the very next step involves getting the balance already, this is where I'm lost:
>>> print "Your balance is %f" % (conn.getbalance(),)
The guide never got into any specifics of what wallet or key pair we're working with, and so here's how the entire guide pans out:
>>> import dogecoinrpc
>>> conn = dogecoinrpc.connect_to_local()
>>> print "Your balance is %f" % (conn.getbalance(),)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.macosx-10.9-intel/egg/dogecoinrpc/connection.py", line 444, in getbalance
File "build/bdist.macosx-10.9-intel/egg/dogecoinrpc/proxy.py", line 121, in __call__
File "build/bdist.macosx-10.9-intel/egg/dogecoinrpc/proxy.py", line 72, in request
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 973, in request
self._send_request(method, url, body, headers)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1007, in _send_request
self.endheaders(body)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 969, in endheaders
self._send_output(message_body)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 829, in _send_output
self.send(msg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 791, in send
self.connect()
What wallet are we trying to get the balance from in this guide?
Is there a better way to perform Dogecoin transactions via pure Python?