bitcoinWebRPC

Bitcoin WebRPC for Python


License
MIT
Install
pip install bitcoinWebRPC==0.101

Documentation

BitcoinWebAPI

BitcoinWebAPI is an easy to use python BitcoinRPC library.

partly forked from https://github.com/petertodd/python-bitcoinlib

Use

Using the proxy should be as simple as:

from bitcoinwebapi import proxy_bitcoin

print (proxy_bitcoin.ProxyBitcoin()._call('getinfo'))

Architecture

bitcoind can be accessed via the RPC. Bitcoin's RPC (/API) is not fully maintained, and knowledge of internals is required especially for larger operations.

bitcoind repsonds to HTTP requests with json if the RPC configuration is set. It does not render HTML.

The proxy is used to generate the json. A more full web implementation based on flask is demonstrated in the code.

Install

  1. git clone https://github.com/benjyz/bitcoinWebAPI

  2. python setup.py install

  3. python example.py

Note: The conf is found and parsed from the .bitcoin folder

WebRPC

The WebRPC is work in progress. The flask webapp is working, but currently not maintained. Potentially the WebRPC can be used as an explorer accessible over an admin-panel and rendering more complex HTTP/HTML applications on top of bitcoind. Integrating more native objects from Peter Todd's library would be nice, but this is intended as an easy to use and stable alternative.

BitcoinRPC

Using the BitcoinRPC is tricky. Many things are not well documented, due to the complexity of Bitoin. The BitcoinRPC project aggregates some information and best practises. https://github.com/benjyz/BitcoinRPC

Notes

A Litecoin proxy is also implemented. This might be outsourced to another repo later.

see also

https://github.com/benjyz/BitcoinRPC

https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29

https://github.com/petertodd/python-bitcoinlib

https://github.com/cenobites/flask-jsonrpc

https://github.com/laanwj/bitcoin-python

https://github.com/jgarzik/python-bitcoinrpc

http://bitcore.io