From d4922ade083036e8febab0e02c843dc32ecc3c77 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sun, 7 Jul 2019 23:51:38 +0100 Subject: [PATCH] bitcoin-cli: add page (#3174) --- pages/common/bitcoin-cli.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/common/bitcoin-cli.md diff --git a/pages/common/bitcoin-cli.md b/pages/common/bitcoin-cli.md new file mode 100644 index 000000000..d8566090b --- /dev/null +++ b/pages/common/bitcoin-cli.md @@ -0,0 +1,25 @@ +# bitcoin-cli + +> Command-line client to interact with the Bitcoin daemon via RPC calls. +> Uses the configuration defined in `bitcoin.conf`. +> More information: . + +- 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}}"`