bitcoin-core-rest-api
БесплатноБез исполняемых скриптовНе проверенBitcoin Core REST interface: read-only HTTP endpoints for blocks, txs, UTXOs, headers, mempool. No auth, no rate limit. Useful for high-throughput read…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Bitcoin Core REST Interface
A read-only HTTP API exposed when rest=1 is set. No authentication,
no batching needed, runs on the same port as RPC (8332).
Enable
rest=1
rpcbind=127.0.0.1:8332
Recommended: bind only to localhost (or use a TLS reverse proxy for public access).
Endpoints
Format: /rest/<resource>/<id>.<format> where format is json,
bin, or hex.
| Path | Description |
|---|---|
/rest/tx/<txid>.json |
Tx by id (verbose JSON) |
/rest/tx/<txid>.bin |
Tx raw bytes |
/rest/tx/<txid>.hex |
Tx hex string |
/rest/block/<hash>.json |
Block (default verbosity 1, txs as txids) |
/rest/block/notxdetails/<hash>.json |
Block without tx details |
/rest/block/<hash>.bin |
Block raw bytes |
/rest/blockpart/<hash>.bin?offset=<o>&size=<n> |
Byte range inside a block (added in 31.0, April 2026) |
/rest/headers/<hash>.json?count=<n> |
count headers upward from hash (default 5) |
/rest/headers/<hash>.bin?count=<n> |
Headers as bytes |
/rest/blockfilterheaders/<type>/<hash>.json?count=<n> |
BIP157 filter headers upward (default 5) |
/rest/blockfilter/<type>/<hash>.json |
BIP158 filter for one block |
/rest/blockhashbyheight/<height>.json |
Block hash for given height |
/rest/spenttxouts/<hash>.json |
Block's spent outputs from undo data (added in 30.0, October 2025) |
/rest/chaininfo.json |
Equivalent to getblockchaininfo |
/rest/deploymentinfo[/<hash>].json |
Equivalent to getdeploymentinfo |
/rest/mempool/info.json |
Mempool stats |
/rest/mempool/contents.json |
All mempool tx hashes (with verbose info) |
/rest/getutxos[/checkmempool]/<txid>-<vout>/<txid>-<vout>/.../.json |
UTXO existence check, multiple at once |
The only <type> for the filter endpoints is basic, and both require
blockfilterindex=1 (otherwise 400 "Index is not enabled for filtertype").
GET /rest/headers/<count>/<hash>.<fmt> and
GET /rest/blockfilterheaders/<type>/<count>/<hash>.<fmt> are the old path
forms. Both have been deprecated since 24.0 and still work as of 31.1
(July 2026), but new code should use the ?count= query form. Note the trap:
omit count and you silently get 5 headers, not an error.
Examples
# Get block hash for height 800000
curl -s 'http://127.0.0.1:8332/rest/blockhashbyheight/800000.json' | jq
# Get the block
curl -s 'http://127.0.0.1:8332/rest/block/<hash>.json' | jq '.tx[:5]'
# Get a tx (requires txindex if it's old)
curl -s 'http://127.0.0.1:8332/rest/tx/<txid>.json' | jq
# Check UTXO existence (multiple at once, with mempool consideration)
curl -s 'http://127.0.0.1:8332/rest/getutxos/checkmempool/<txid>-0/<txid2>-1.json' | jq
# Headers: ask for the count explicitly, or you get 5
curl -s 'http://127.0.0.1:8332/rest/headers/<hash>.json?count=2000' | jq length
# A block's spent prevouts, straight from undo data (no txindex needed).
# Index 0 is the coinbase placeholder (always []), so tx n is at index n.
curl -s 'http://127.0.0.1:8332/rest/spenttxouts/<hash>.json' | jq '.[1][0]'
# First 80 bytes of a block = its header, without pulling the whole block
curl -s 'http://127.0.0.1:8332/rest/blockpart/<hash>.hex?offset=0&size=80'
When to prefer REST over RPC
| Aspect | RPC | REST |
|---|---|---|
| Auth | required | none |
| Output format | JSON only | JSON, bin, hex |
| Batch | yes (JSON-RPC array) | no (multiple HTTP calls) |
| Response encoding | hex + JSON per response | .bin returns raw bytes, no hex/JSON step |
| Subscribe / push | no | no (use ZMQ) |
| Wallet ops | yes | no |
| Modify state | yes | no |
| HTTP-only environments | works | works |
REST is better for:
- High-throughput read services where RPC auth overhead matters.
- Public read APIs (with proxy).
- Tools that prefer raw HTTP / binary fetches.
RPC is better for:
- Anything writing state (broadcast, wallet ops).
- Atomic batch reads.
- Auth-required environments.
Limits
getutxoschecks: max 15 UTXOs per call (MAX_GETUTXOS_OUTPOINTS).headers/blockfilterheaders:countmust be 1..2000 (MAX_REST_HEADERS_RESULTS); out of range is a 400, not a clamp. Default 5.- No built-in pagination for
mempool/contents.
Public exposure considerations
Bitcoin Core REST has no built-in TLS, no rate limiting, no auth. For public exposure:
- TLS reverse proxy (nginx / Caddy).
- Rate limit (nginx
limit_req_zone). - Cache at the proxy layer (block data is immutable; tx data is immutable once mined).
Through 31.1 (July 2026) Core sets no Cache-Control itself, so the proxy is
the whole cache policy. Master and v32.0rc1 (tagged 14 September 2026; 32.0
unreleased as of 15 September 2026) add defaults: public, immutable, max-age=86400 on /block and /block/notxdetails bin/hex, /blockpart,
/blockfilter, /spenttxouts and /deploymentinfo/<hash>.json; no-store on
everything else, errors included. No ETag/Last-Modified either way.
Esplora / mem
Установить bitcoin-core-rest-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл bitcoin-core-rest-api?
Bitcoin Core REST interface: read-only HTTP endpoints for blocks, txs, UTXOs, headers, mempool. No auth, no rate limit. Useful for high-throughput read services. USE WHEN: building read-only services that don't need RPC auth, fetching tx/block data efficiently, integrating with explorers.
Как установить скилл bitcoin-core-rest-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bitcoin-core-rest-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic