1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 20:55:26 +02:00
tldr/pages/common/bitcoin-cli.md
Managor 4b1e0196d1
common/*: reduce usage of "command-line" (part 3) (#16951)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
2025-06-28 13:12:44 +00:00

37 lines
851 B
Markdown

# bitcoin-cli
> 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>.
- 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}}"`
- Get blockchain information:
`bitcoin-cli getblockchaininfo`
- Get network information:
`bitcoin-cli getnetworkinfo`
- Stop the Bitcoin Core daemon:
`bitcoin-cli stop`