Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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.

Files for bitcoin-requests, version 2.0.0
Filename, size File type Python version Upload date Hashes
Filename, size bitcoin_requests-2.0.0-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bitcoin-requests-2.0.0.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page