Lightweight bitcoin JSON-RPC python async client
Project description
bitcoin-python-async-rpc
Lightweight Bitcoin async JSON-RPC Python client.
Serves as a tiny layer between an application and a Bitcoin daemon, its primary usage is querying the current state of Bitcoin blockchain, network stats, transactions...
If you want complete Bitcoin experience in Python, consult python-bitcoinlib .
Installation
$ pip install bitcoinrpc
Usage
Minimal illustration (assuming Python 3.8, where you can run async
code in console)
$ python -m asyncio
>>> import asyncio
>>>
>>> from bitcoinrpc import BitcoinRPC
>>> rpc = BitcoinRPC("127.0.0.1", 8332, "rpc_user", "rpc_passwd")
>>> await rpc.getconnectioncount()
10
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
bitcoinrpc-0.2.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for bitcoinrpc-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae500d44d05a0f2ffe76b07900ac8d577241a205b680b607fbe1108a20997fd4 |
|
MD5 | 8b1e5cfe1680847bf5670467e73190d6 |
|
BLAKE2b-256 | 6d5f371be8f462e74ae43be463dc7f0c82a8b95a2701f2be4e5ae138aa32997d |