New RPC Commands
Bitcoin Knots includes several RPC commands not available in Bitcoin Core.
Mempool Commands
listmempooltxs
List transactions in the mempool with filtering options:
bitcoin-cli listmempooltxs
getmempoolinfo (Enhanced)
Returns extended mempool information including fee histogram:
bitcoin-cli getmempoolinfo
Block Commands
getblocklocations
Get the file locations of a block:
bitcoin-cli getblocklocations "blockhash"
Returns:
{
"file": 1234,
"pos": 567890,
"undo_file": 1234,
"undo_pos": 123456
}
getblockfileinfo
Get information about block files:
bitcoin-cli getblockfileinfo 1234
Wallet Commands
sweepprivkeys
Import and sweep private keys:
bitcoin-cli sweepprivkeys '["privkey1"]' "destination"
dumpmasterprivkey
Export the HD master private key (legacy wallets):
bitcoin-cli -rpcwallet=legacy dumpmasterprivkey
Security Warning
Never share your master private key. This gives complete control over your wallet.
Fee Commands
savefeeestimates
Save fee estimates to disk:
bitcoin-cli savefeeestimates
Network Commands
getrpcwhitelist
Get RPC whitelisting information:
bitcoin-cli getrpcwhitelist
getgeneralinfo
Get general node information (combines multiple info commands):
bitcoin-cli getgeneralinfo
Utility Commands
getaddressinfo (Enhanced)
Enhanced with transaction ID information:
bitcoin-cli getaddressinfo "address"
Includes txids field showing transactions involving the address.
See Also
- Enhanced Commands - Modified existing commands
- RPC Reference - Full RPC documentation