wobine / blackboard101

python files from the blackboard 101 series on world bitcoin network
198 stars 132 forks source link

python-bitcoinrpc has changed #11

Open gustavklopp opened 8 years ago

gustavklopp commented 8 years ago

We can't use python-bitcoinrpc as before: the import files don't exist anymore to connect to bitcoind, only is needed :

from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException
# rpc_user and rpc_password are set in the bitcoin.conf file
bitcoin = AuthServiceProxy("http://%s:%s@127.0.0.1:8332"%(rpc_user, rpc_password))