bitcoin-cli Command Examples

Command-line client to interact with the Bitcoin Core daemon via RPC calls. Uses the configuration defined in bitcoin.conf. More information: https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments.

bitcoin-cli sendtoaddress "{{address}}" {{amount}}

bitcoin-cli generate {{num_blocks}}

bitcoin-cli getwalletinfo

bitcoin-cli listunspent

bitcoin-cli dumpwallet "{{path/to/file}}"

bitcoin-cli getblockchaininfo

bitcoin-cli getnetworkinfo

bitcoin-cli stop