Skip to main content

Bitcoin RPC Client

RPC client for Bitcoin Daemons

Install

pip install bitcoin-rpc-client

Usage

Prerequesites:

Run a Bitcoin daemon/node

bitcoind -server -rpcuser=user -rpcpassword=pass

Sync

from bitcoin_rpc_client import RPCClient

with RPCClient('http://127.0.0.1:18443', 'user', 'pass') as rpc:
    blocks = rpc.generate(101)
    tx = rpc.sendtoaddress(address, 20)

# or 

rpc = RPCClient('http://127.0.0.1:18443', 'user', 'pass')
blocks = rpc.generate(101)
tx = rpc.sendtoaddress(address, 20)
rpc.close()

Async

from bitcoin_rpc_client import RPCClientAsync

with RPCClientAsync('http://127.0.0.1:18443', 'user', 'pass') as rpc:
    blocks = await rpc.generate(101)
    tx = await rpc.sendtoaddress(address, 20)

# or

rpc = RPCClientAsync('http://127.0.0.1:18443', 'user', 'pass')
blocks = await rpc.generate(101)
tx = await rpc.sendtoaddress(address, 20)
await rpc.aclose()

Metadata

Release files for bitcoin-rpc-client 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitcoin-rpc-client 0.1.2
File Size Uploaded Provenance Actions
bitcoin-rpc-client-0.1.2.tar.gz 3.5 kB Without provenance Details for bitcoin-rpc-client-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bitcoin-rpc-client 0.1.2
File Interpreter ABI Platform Actions
bitcoin_rpc_client-0.1.2-py3-none-any.whl Python 3 none any Details for bitcoin_rpc_client-0.1.2-py3-none-any.whl

Total release size: 8.3 kB

Release files / bitcoin-rpc-client-0.1.2.tar.gz

Download URL bitcoin-rpc-client-0.1.2.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
774224aaff2ebd492b0f565df0728b59538413849fdd5119ec4129d62789858c
BLAKE2b-256 checksum
How to use checksums
6082a4539aa885493b7daa7af5b718c61ced66e9d174d3f0f74d62efd2c42a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

Release files / bitcoin_rpc_client-0.1.2-py3-none-any.whl

Download URL bitcoin_rpc_client-0.1.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8229e07c06d18c2c27df8a1e7284ce6272873d37c36e6edda66f0299dba85bb5
BLAKE2b-256 checksum
How to use checksums
39fb13d160f76d62c35f7a2aa52474b22a11e14a6f687854cb3bf3000215ede6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

Security for bitcoin-rpc-client 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page