Metadata-Version: 2.1
Name: bitcoincli
Version: 1.0.0
Summary: A python binding for Bitcoin Json-RPC API
Home-page: https://github.com/chainstack/bitcoincli
Author: Evgeny Konstantinov, Alex Khaerov, Federico Cardoso
Author-email: evgeny.konstantinov@chainstack.com,alex.khaerov@chainstack.com,federico.cardoso@dxmarkets.com
License: BSD
Keywords: bitcoin python blockchain jsonrpc
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.20.0)

## Description

Heavily based on [python-bitcoinrpc](https://github.com/jgarzik/python-bitcoinrpc) and [Savoir](https://github.com/DXMarkets/Savoir) but replacing the httplib with [requests](http://docs.python-requests.org/en/master/).

## Installation

``` sh
git clone https://github.com/chainstack/bitcoincli
```

## Usage

After cloning this repository, run:

``` sh
python setup.py develop
```

Use the [Bitcoin API documentacion](https://bitcoin.org/en/developer-reference#bitcoin-core-apis) and make calls to the wrapper.

Remember to replace the RPC variables with your Bitcoin node access credentials.

```python
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)
```


