Skip to main content

RPC Reference

Bitcoin Knots includes all Bitcoin Core RPC commands plus additional Knots-specific commands.

Blockchain​

CommandDescription
getblockchaininfoBlockchain state info
getblockGet block data
getblockhashGet block hash by height
getblockcountCurrent block height
getblocklocationsBlock file locations (Knots)
getblockfileinfoBlock file details (Knots)

Mempool​

CommandDescription
getmempoolinfoMempool statistics (enhanced in Knots)
getrawmempoolList mempool transactions
listmempooltransactionsList mempool txs with sequence numbers, for polling-based sync (Knots)
maxmempoolSet the mempool memory limit at runtime (Knots, v29.3+)
getmempoolentryMempool entry details

Network​

CommandDescription
getnetworkinfoNetwork state
getpeerinfoConnected peers (enhanced)
addnodeAdd peer
disconnectnodeDisconnect peer
getrpcwhitelistRPC whitelist info (Knots)

Wallet​

CommandDescription
createwalletCreate wallet
loadwalletLoad wallet
getnewaddressGenerate address
getbalanceWallet balance
sendtoaddressSend bitcoin
sweepprivkeysSweep private keys to a fresh wallet address (Knots; v29.3 adds p2wpkh/p2tr support)
dumpmasterprivkeyDump master key (Knots)

Mining​

CommandDescription
getblocktemplateBlock template (enhanced)
getmininginfoMining info

Fee Estimation​

CommandDescription
estimatesmartfeeFee estimation
savefeeestimatesSave estimates (Knots)

Utility​

CommandDescription
getgeneralinfoGeneral node info (Knots)
validateaddressValidate address
signmessageSign message (BIP-322 enhanced)
verifymessageVerify message (multi-format)

Getting Help​

List all commands:

bitcoin-cli help

Get help for a command:

bitcoin-cli help getblockchaininfo

See Also​