From 7f8a2f626f214dedfe8c5c88e44dc0e28e2ed98c Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Tue, 12 May 2020 13:02:54 +0200 Subject: [PATCH] Update documentation of the repl --- content/repl/installation.md | 2 +- content/repl/interface.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/content/repl/installation.md b/content/repl/installation.md index 8ab8e064a1..fd3630dabf 100644 --- a/content/repl/installation.md +++ b/content/repl/installation.md @@ -23,7 +23,7 @@ users and won't be covered in this guide. Once Cargo is installed, you can proceed to install the interactive Magical Bitcoin shell directly from the GitHub repository, by running: ```bash -cargo install --git https://github.com/magicalbitcoin/magical-bitcoin-wallet --example magic +cargo install --git https://github.com/magicalbitcoin/magical-bitcoin-wallet --features=cli-utils --example magic ``` This command will probably take a while to finish, since it will fetch and compile all the dependencies and the `magical-bitcoin-wallet` itself. Once it's done, you can check if everything went fine diff --git a/content/repl/interface.md b/content/repl/interface.md index 1c4aca3f35..05e41406e0 100644 --- a/content/repl/interface.md +++ b/content/repl/interface.md @@ -65,6 +65,7 @@ SUBCOMMANDS: get_new_address Generates a new external address list_unspent Lists the available spendable UTXOs policies Returns the available spending policies for the descriptor + public_descriptor Returns the public version of the wallet's descriptor(s) repl Opens an interactive shell sign Signs and tries to finalize a PSBT sync Syncs with the chosen Electrum server @@ -409,6 +410,10 @@ the descriptor (type = `PARTIALCOMPLETE`) and the three options are `[0, 1] ⇒ } ``` +### `public\_descriptor` + +This subcommand has no extra flags and returns the "public" version of the wallet's descriptor(s). It can be used to bootstrap a watch-only instance for the wallet. + ### `repl` This subcommand has no extra flags and launches an interactive shell session. -- 2.49.0