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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for bitcoin_requests-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a165891ee3bcb55fff3d5bf1acb356bb7fb4e00397c24f3f824c5fb6b0e5a89d |
|
MD5 | ee1d7978fd281f2877f19392acb2363c |
|
BLAKE2b-256 | 4c8dbb223580c4a2b10ac836d526ab69fec28b997ea5c3d728677dd55cf7176a |