bitcoin-requests

Simplest Bitcoin Core RPC interface.


Keywords
bitcoin, json-rpc, python3, requests, simple
License
MIT
Install
pip install bitcoin-requests==2.0.0

Documentation

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