python-bitcoinrpc
Enhanced version of python-jsonrpc for use with Bitcoin
What it is and what it does
python-bitcoinrpc is a JSON-RPC client library designed to communicate with Bitcoin Core nodes over HTTP. It wraps the lower-level JSON-RPC protocol with Bitcoin-specific conveniences: HTTP Basic authentication, persistent connections for efficiency, and automatic conversion of numeric values to Python Decimal objects to preserve financial precision without floating-point rounding errors.
The library supports both single RPC calls and batch operations, allowing multiple commands to be sent in fewer round-trips to the node. It can optionally log all RPC calls and responses for debugging. The package is dormant—its last release was in 2016—which means it may require adaptation for use with modern Python versions and current Bitcoin Core releases.
Use it for:
- Query blockchain data from a local Bitcoin Core node (block hashes, transaction details, wallet balances).
- Batch-fetch multiple blocks or transactions in a single round-trip to reduce latency.
- Build a Bitcoin wallet or monitoring tool that needs precise decimal arithmetic for satoshi-level amounts.
- Automate Bitcoin node administration tasks via RPC (e.g., generate addresses, sign transactions).
- Log and audit all RPC interactions with a Bitcoin node for compliance or debugging.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a JSON-RPC client library for communicating with Bitcoin Core nodes via HTTP, with persistent connections, batch request support, and Decimal precision for financial values.
Yes, with conditions. The package is suitable for Bitcoin Core RPC communication if you can verify Python version compatibility and confirm the library works with your target Bitcoin Core version. The dormant maintenance status and 2016 release date mean you should test thoroughly before relying on it in production. The LGPL license requires that any modifications or derivative works be released under compatible terms.
Install
python-bitcoinrpc on PyPI
pip
pip install python-bitcoinrpcuv
uv add python-bitcoinrpcpoetry
poetry add python-bitcoinrpcInstalling python-bitcoinrpc
Before you install
High install friction: the package is dormant (last release 2016-08-24, last commit 2024-02-15) and provides no runtime dependencies, suggesting it may require manual setup or compatibility work with modern Python versions. Maintenance status is dormant.
License in practice
Licensed under LGPL (copyleft), which requires derivative works to be released under compatible terms. Use in proprietary software requires careful licensing review.
Quickstart
pip install python-bitcoinrpc
from bitcoinrpc.authproxy import AuthServiceProxy
rpc_connection = AuthServiceProxy("http://user:pass@127.0.0.1:8332")
best_block_hash = rpc_connection.getbestblockhash()
Requires a running Bitcoin Core node accessible at the specified RPC endpoint with valid credentials configured in bitcoin.conf.
Verify before relying
- Whether the package works with Python 3.x (documentation references Python 2.x setup)
- Current compatibility with modern Bitcoin Core RPC API versions
- Whether persistent HTTP connections still function correctly with current Bitcoin Core implementations
Package facts
| License | UNKNOWN (copyleft) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 3,642 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,191/month — #12,479 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: python-bitcoinrpc-1.0.tar.gz
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
jsonrpcclientGenerates JSON-RPC request objects and parses…
unclear · top 15,000 on PyPI
transmission-rpcPython wrapper around the Transmission…
permissive · top 15,000 on PyPI
ajsonrpcImplements the JSON-RPC 2.0 protocol with an…
permissive · top 5,000 on PyPI
python-bitcoinlibProvides low-level Python tools to work with…
copyleft · top 15,000 on PyPI
json-rpcImplements JSON-RPC 2.0 and 1.0 protocol…
permissive · top 5,000 on PyPI
python-lsp-jsonrpcImplements a JSON RPC 2.0 server for Python…
permissive · top 5,000 on PyPI
opentimestamps-clientCommand-line tool to create and verify…
copyleft · top 15,000 on PyPI
forex-pythonFetches current and historical foreign exchange…
permissive · top 15,000 on PyPI
smoldot-lightPython bindings for the smoldot_light Rust…
unclear · top 15,000 on PyPI
kanboardA Python client library that wraps the Kanboard…
permissive · top 15,000 on PyPI