Post
Topic
Board Beginners & Help
Re: Python-BitcoinRPC
by
Nontenda
on 24/04/2013, 12:23:16 UTC
Hi, thank's for your answer.

I only have one Python installed (3.0 CPython).

When I do a pip freeze, I got :
C:\Python33\Scripts>pip freeze
distribute==0.6.36
python-bitcoinrpc==0.1

EDIT FOUND :
Correct code is :

import bitcoinrpc.authproxy
import pprint

BITCOINRPC = 'http://user:pass@127.0.0.1:8332/'
pp = pprint.PrettyPrinter(indent=4)

bitcoin = bitcoinrpc.authproxy.AuthServiceProxy(BITCOINRPC)

data = bitcoin.getinfo()        # call bitcoin 'getinfo' RPC

But not working on Windows, don't know why. I'll try with PHP