Skip to main content

Simplest Bitcoin Core RPC interface.

Project description

The simplest Bitcoin Core RPC library for when you just want to talk to Bitcoin Core.

Usage

If you started Bitcoin Core like this:

bitcoind -regtest -rpcuser=user -rpcpassword=pass

Instantiate the bitcoin_requests RPC client like this:

from bitcoin_requests import BitcoinRPC

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

Installation

pip install bitcoin-requests

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

bitcoin-requests-2.0.0.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

bitcoin_requests-2.0.0-py3-none-any.whl (2.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page