A previous release had provenance metadata, but this release does not. View details.
Satoshi API
Stop overpaying Bitcoin fees. Know when to send.
Live Playground · Landing Page · PyPI · MCP Server · Discord Bot
Bad fee timing burns sats on every Bitcoin transaction. Satoshi API tells you when to send, what to pay, and whether to wait — combining multiple estimatesmartfee targets with real-time mempool state. Instead of just "4 sat/vB", you get "Fees are low. Good time to send." One pip install, self-hostable, open source.
Install & Run
pip install satoshi-api
export BITCOIN_RPC_USER=your_user BITCOIN_RPC_PASSWORD=your_password
satoshi-api
# API: http://localhost:9332
# Docs: http://localhost:9332/docs
Example
curl http://localhost:9332/api/v1/fees/recommended | jq
{
"data": {
"recommendation": "Fees are low. Good time to send.",
"estimates": { "high": 4, "medium": 2, "low": 1 }
},
"meta": { "timestamp": "...", "node_height": 939462, "chain": "main" }
}
Core Endpoints
| Category | Endpoints | Highlights |
|---|---|---|
| Blocks | 8 | Latest block, by height/hash, stats, txids, header |
| Transactions | 7 | Decoded analysis, status, outspends, UTXO lookup, broadcast |
| Fees | 7 | Recommendations, landscape ("send now or wait?"), history, mempool-blocks |
| Mempool | 5 | Congestion score, fee buckets, recent entries |
| Mining | 2 | Hashrate, difficulty, next block template |
| Network | 4 | Peers, forks, difficulty, address validation |
| Streams | 2 | Real-time blocks & fees via SSE |
...and more (prices, address lookups, exchange comparison). Full interactive docs at /docs.
For AI Agents
bitcoin-mcp — the first Bitcoin MCP server on the official Anthropic MCP Registry — lets AI agents check fees, verify payments, and monitor addresses without human babysitting. Saves developer time: no custom Bitcoin plumbing needed.
# Install and point at your Satoshi API instance
pip install bitcoin-mcp
SATOSHI_API_URL=https://bitcoinsapi.com bitcoin-mcp
Or connect to a local node directly:
{
"mcpServers": {
"bitcoin": { "command": "bitcoin-mcp" }
}
}
Self-Hosting
pip install satoshi-api
satoshi-api # runs on :9332
# Expose publicly (free HTTPS + DDoS protection)
cloudflared tunnel --url http://localhost:9332
See self-hosting guide for full production setup.
Contributing
Issues and PRs welcome. Run the test suite before submitting:
pip install -e ".[dev]"
pytest
License
Apache 2.0 — see LICENSE.
Live API · Website · PyPI · MCP Server
Built by a Bitcoin Core contributor.
Metadata
Release files for satoshi-api 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| satoshi_api-0.3.4.tar.gz | 2.0 MB | Without provenance | Details for satoshi_api-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| satoshi_api-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for satoshi_api-0.3.4-py3-none-any.whl |
Total release size: 2.1 MB
Release files / satoshi_api-0.3.4.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | satoshi_api-0.3.4.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58c232388af97eba7656fd38a1ad626be844b5b08d2b3a3b9da67856a3b61e84
|
|
BLAKE2b-256 checksum How to use checksums |
2ac9bea42274a26ec0e08f13c449834593a5354661c2e281be1432937f9d97de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / satoshi_api-0.3.4-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | satoshi_api-0.3.4-py3-none-any.whl |
|---|---|
| Size | 131.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76a939807103c811f6c13bac415637318e16fa243305256f81e7fd8979cb27d1
|
|
BLAKE2b-256 checksum How to use checksums |
9693ef74be1ab3525e59a2624fb668219b9cec2f263269b3e6fafa040c6306d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for satoshi-api 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.3.1 2 files With provenance
- Added 0.3.4 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.