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
Metadata
Release files for bitcoin-requests 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bitcoin-requests-2.0.0.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bitcoin_requests-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / bitcoin-requests-2.0.0.tar.gz
| Download URL | bitcoin-requests-2.0.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cb6829cbb09cc5e371a200ed21d67749ae6706405d2c406f233965ca5c76a75
|
|
BLAKE2b-256 checksum How to use checksums |
73b9c781fb8aa7a13de57cdbc9133200c30288bdff5cdd2b2296ae2d4aed85b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.5
|
Release files / bitcoin_requests-2.0.0-py3-none-any.whl
| Download URL | bitcoin_requests-2.0.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a165891ee3bcb55fff3d5bf1acb356bb7fb4e00397c24f3f824c5fb6b0e5a89d
|
|
BLAKE2b-256 checksum How to use checksums |
4c8dbb223580c4a2b10ac836d526ab69fec28b997ea5c3d728677dd55cf7176a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.5
|