Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fiatjaf/bitcoin-requests
Simplest Bitcoin Core RPC interface.
https://github.com/fiatjaf/bitcoin-requests
bitcoin json-rpc python3 requests simple
Last synced: 22 days ago
JSON representation
Simplest Bitcoin Core RPC interface.
- Host: GitHub
- URL: https://github.com/fiatjaf/bitcoin-requests
- Owner: fiatjaf
- License: other
- Created: 2019-02-18T01:33:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T00:58:55.000Z (about 4 years ago)
- Last Synced: 2024-10-25T21:06:45.064Z (24 days ago)
- Topics: bitcoin, json-rpc, python3, requests, simple
- Language: Python
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The simplest Bitcoin Core RPC library for when you just want to talk to Bitcoin Core.
## Usage
If you started Bitcoin Core like this:
```bash
bitcoind -regtest -rpcuser=user -rpcpassword=pass
```Instantiate the `bitcoin_requests` RPC client like this:
```python
from bitcoin_requests import BitcoinRPCrpc = BitcoinRPC('http://127.0.0.1:18443', 'user', 'pass')
blocks = rpc.generate(101)
tx = rpc.sendtoaddress(address, 20)
```## Installation
```
pip install bitcoin-requests
```