A python binding for Bitcoin Json-RPC API
Project description
Description
Heavily based on python-bitcoinrpc and Savoir but replacing the httplib with requests.
Installation
git clone https://github.com/chainstack/bitcoincli
Usage
After cloning this repository, run:
python setup.py develop
Use the Bitcoin API documentacion and make calls to the wrapper.
Remember to replace the RPC variables with your Bitcoin node access credentials.
from bitcoincli import Bitcoin
host = "nd-123-456-789.p2pify.com"
port = "80"
username = "user-name"
password = "pass-word-pass-word-pass-word"
bitcoin = Bitcoin(username, password, host, port)
info = bitcoin.getblockchaininfo()
print(info)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bitcoincli-1.0.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for bitcoincli-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2889cf4879c9dbf802c427c152b39b97bdff5865f9867b9baa54b505c37365 |
|
MD5 | b745d332da191b1ef9cfde09acfe4028 |
|
BLAKE2b-256 | fe8f3d3316f2ffc2223c7f8cafa58746a9e956abb6578df3a9f812ac1f032260 |