1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:22:08 +02:00
tldr/pages/common/bitcoin-cli.md
Fazle Arefin d18350312d
bitcoin-cli: edit page (#13298)
Co-authored-by: spageektti <git@spageektti.cc>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-07-25 20:27:55 +02:00

37 lines
864 B
Markdown

# bitcoin-cli
> 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>.
- 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`