Skip to main content

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


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.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitcoinrpc-0.2.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file bitcoinrpc-0.2.2.tar.gz.

File metadata

  • Download URL: bitcoinrpc-0.2.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for bitcoinrpc-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f7503e38faa0ef568b7b8a04ff4bca7d9daaae221898ded91be13514c24952d2
MD5 e98e536dc1b225edbbad8ced0613c544
BLAKE2b-256 89defecac267d16cb45592ed829661afd6b129fc38018912fa74735571654a9c

See more details on using hashes here.

File details

Details for the file bitcoinrpc-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: bitcoinrpc-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for bitcoinrpc-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51a4a278bee7f1f524a55a033d89d035565146b519474d26b94f4e5945a9f454
MD5 7e4bd13919bab93224f387ee0e47ae74
BLAKE2b-256 729ae950aa0ac8fcbfe5000c969bdbb838cc49c8f40959aa46c09134b3bfcfcc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page