bitcoin-cli

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

Install

All systems
curl cmd.cat/bitcoin-cli.sh
Debian Debian
apt-get install bitcoind
Alpine
apk add bitcoin-cli
Arch Arch Linux
pacman -S bitcoin-cli
Raspbian
apt-get install bitcoind
Docker
docker run cmd.cat/bitcoin-cli bitcoin-cli powered by Commando

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

  • Send a transaction to a given address:
    bitcoin-cli sendtoaddress "address" amount
  • Generate one or more blocks:
    bitcoin-cli generate num_blocks
  • Print high-level information about the wallet:
    bitcoin-cli getwalletinfo
  • List all outputs from previous transactions available to fund outgoing transactions:
    bitcoin-cli listunspent
  • Export the wallet information to a text file:
    bitcoin-cli dumpwallet "path/to/file"

© tl;dr; authors and contributors