N. P. O'Donnell, 2018-2020
Get help:
bitcoin-cli help
Get info on local node (mempool, etc):
bitcoin-cli getinfo
Get up-to-date info about the blockchain:
bitcoin-cli getblockchaininfo
Get block count:
bitcoin-cli getblockcount
Get a raw transaction:
bitcoin-cli getrawtransaction <txid>
Decode raw transaction:
bitcoin-cli decoderawtransaction <hextx>
List peers:
bitcoin-cli getpeerinfo
List accounts:
bitcoin-cli listaccounts
Get unconfirmed balance: This is money that's coming to you but hasn't yet been confirmed in a block
bitcoin-cli getunconfirmedbalance
Get total balance held in all UTXOs:
bitcoin-cli getbalance
List unspent UTXOs:
bitcoin-cli listunspent
Get a new address:
bitcoin-cli getnewaddress
Dump a private key from address:
bitcoin-cli dumpprivkey <address>
Import a private key (WIF format):
bitcoin-cli importprivkey <wifkey>
Send bitcoin to address:
bitcoin-cli sendtoaddress <address> <amountexcludingfee>