bitcoincli-1.0.0
توضیحات
A python binding for Bitcoin Json-RPC API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bitcoincli-1.0.0 |
| نام | bitcoincli |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Evgeny Konstantinov, Alex Khaerov, Federico Cardoso |
| ایمیل نویسنده | evgeny.konstantinov@chainstack.com,alex.khaerov@chainstack.com,federico.cardoso@dxmarkets.com |
| آدرس صفحه اصلی | https://github.com/chainstack/bitcoincli |
| آدرس اینترنتی | https://pypi.org/project/bitcoincli/ |
| مجوز | BSD |
## 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)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.20.0 | requests |
نحوه نصب
نصب پکیج whl bitcoincli-1.0.0:
pip install bitcoincli-1.0.0.whl
نصب پکیج tar.gz bitcoincli-1.0.0:
pip install bitcoincli-1.0.0.tar.gz