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 and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page