Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bitcoin-core-rpc

БесплатноБез исполняемых скриптовНе проверен

Bitcoin Core JSON-RPC interface: authentication (cookie, rpcauth), wallet vs node RPCs, common verbs (getblockchaininfo, getrawtransaction, scantxoutset…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Bitcoin Core JSON-RPC

Authentication

Cookie auth (recommended for local)

  • File ~/.bitcoin/.cookie is auto-generated; format __cookie__:<random>.
  • bitcoin-cli uses cookie automatically.
  • HTTP: Authorization: Basic base64(cookie_contents).

rpcauth (recommended for remote)

Generated via share/rpcauth/rpcauth.py user:

rpcauth=user:<salt>$<hmac_sha256>

Add to bitcoin.conf. Works without storing plaintext password.

rpcuser/rpcpassword (legacy, avoid)

Plaintext in conf; risk of leaking via process listings.

Wallet vs node RPCs

  • Node RPCs: per-node, no wallet context (getblockchaininfo, getrawtransaction, scantxoutset).
  • Wallet RPCs: bound to a specific wallet (getbalance, walletprocesspsbt, listunspent).

Multi-wallet: use rpcwallet= URL parameter or bitcoin-cli -rpcwallet=<name>:

bitcoin-cli -rpcwallet=hot getbalance
curl -u user:pass --data '{"jsonrpc":"2.0","id":1,"method":"getbalance"}' \
  http://127.0.0.1:8332/wallet/hot

Common verbs (selected)

Chain & block

RPC Use
getblockchaininfo Sync state, network, deployments
getbestblockhash Tip hash
getblock <hash> [verbosity 0-3] Block data, increasing detail
getblockstats <hash> [stats] Block-level stats (fees, sigops)
gettxoutsetinfo UTXO set statistics
verifychain Background reverification

Transactions

RPC Use
getrawtransaction <txid> [verbose=2] Tx by hash (verbose=2 adds fee + prevout info)
decoderawtransaction <hex> Parse a hex tx
decodescript <hex> Parse a script
sendrawtransaction <hex> Broadcast, returns txid
testmempoolaccept '[<hex>,...]' Dry-run admit
submitpackage '[<parent>,...,<child>]' Package submit: one child plus some/all/none of its unconfirmed parents, topologically sorted, child last

Package limits (doc/policy/packages.md, as of Bitcoin Core 31.1, July 2026): MAX_PACKAGE_COUNT=25 transactions and MAX_PACKAGE_WEIGHT=404000 weight units. Parents may not depend on each other, and parents already in the mempool need not be included. The 1-parent-1-child restriction applies only to package replacements, not to submission. Submission is not atomic: each transaction is validated individually first, so a package can partially succeed.

Since 31.0 (April 2026) a transaction in one-parent-one-child package relay may have a parent whose feerate is below -minrelaytxfee, even zero fee; this extends the 28.0 behaviour from TRUC to non-TRUC transactions (#33892). That is a relay rule, not a submitpackage rule.

BIP 331 ("Ancestor Package Relay", Gloria Zhao, Peer Services layer, Status: Draft as of September 2026) is the P2P relay proposal for requesting a transaction's unconfirmed ancestors from a peer. It is unrelated to the submitpackage RPC and to getrawtransaction verbosity.

Wallet

RPC Use
createwallet <name> [...] Create wallet (default: descriptors=true since 23.0)
loadwallet <name> / unloadwallet Load/unload from disk
listunspent [minconf] [maxconf] [addrs] UTXOs, with desc info
getbalances Mine/trusted/untrusted, immature, frozen
walletprocesspsbt <psbt> Sign + finalize where possible
walletcreatefundedpsbt Build PSBT, fund inputs, add change
combinepsbt, finalizepsbt, decodepsbt, analyzepsbt PSBT roles
importdescriptors '[<obj>,...]' Add descriptors to wallet
listdescriptors [private] Inspect wallet descriptors
bumpfee <txid>, psbtbumpfee RBF helpers

Mempool

RPC Use
getmempoolinfo Counts, size, fee floor
getrawmempool [verbose] Tx list (verbose: full info incl. ancestor counts)
getmempoolentry <txid> Single tx info (incl. chunkweight, fees.chunk since 31.0)
getmempoolcluster <txid> Cluster containing that tx, split into chunks in mining order (31.0+)
getmempoolfeeratediagram Cumulative weight/fee feerate diagram of the whole mempool (31.0+, hidden RPC)
prioritisetransaction Mine-priority bump

Cluster mempool (31.0+)

Bitcoin Core 31.0 (April 2026) reimplemented the mempool as a "cluster mempool". Ancestor and descendant size/count limits are no longer enforced. They are replaced by limits on a cluster - the connected component reachable through any combination of parent/child links in the mempool:

Limit Default Setting
Transactions per cluster 64 -limitclustercount
Virtual size per cluster 101 kvB -limitclustersize

Both are debug-only options (-help-debug). -limitancestorcount and -limitdescendantcount still exist but no longer gate mempool acceptance; they now only inform wallet coin selection. -limitancestorsize / -limitdescendantsize have no effect and log a startup warning.

Other 31.0 consequences an integration must handle:

Полный SKILL.md на GitHub

Установить bitcoin-core-rpc в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

FAQ

Что делает скилл bitcoin-core-rpc?

Bitcoin Core JSON-RPC interface: authentication (cookie, rpcauth), wallet vs node RPCs, common verbs (getblockchaininfo, getrawtransaction, scantxoutset, importdescriptors, walletprocesspsbt, submitpackage, testmempoolaccept), error handling. USE WHEN: scripting bitcoind, integrating a service, debugging RPC errors.

Как установить скилл bitcoin-core-rpc?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bitcoin-core-rpc запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bitcoin-core-rpc с