You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is available for wallet, key, repl and compile features. When ommitted, outputs default to `JSON`.
205
205
206
-
###Initializing Wallet Configurations with `bdk-cli wallet init`
206
+
## Initializing Wallet Configurations with `init` Subcommand
207
207
208
-
The `bdk-cli wallet init` command simplifies wallet setup by saving configuration parameters to `config.toml` in the data directory (default `~/.bdk-bitcoin/config.toml`). This allows you to run subsequent `bdk-cli` wallet commands without repeatedly specifying configuration details, easing wallet operations.
208
+
The `wallet init`sub-command simplifies wallet operations by saving configuration parameters to `config.toml` in the data directory (default `~/.bdk-bitcoin/config.toml`). This allows you to run subsequent `bdk-cli wallet` commands without repeatedly specifying configuration details, easing wallet operations.
209
209
210
210
To initialize a wallet configuration, use the following command structure:
To overwrite an existing wallet configuration, use the `--force` flag at the end of the command.
223
+
To overwrite an existing wallet configuration, use the `--force` flag after the `init` sub-command.
224
224
225
225
You can omit the following arguments to use their default values:
226
226
@@ -235,12 +235,9 @@ After a wallet is initialized, you can then run `bdk-cli` wallet commands withou
235
235
For example, with the wallet `my_wallet` initialized, generate a new address and sync the wallet as follow:
236
236
237
237
```shell
238
-
cargo run wallet -w my_wallet new_address
238
+
cargo run wallet -w my_wallet --use-config new_address
239
239
240
-
cargo run --features electrum wallet -w my_wallet sync
240
+
cargo run --features electrum wallet -w my_wallet --use-config sync
241
241
```
242
242
243
243
Note that each wallet has its own configuration, allowing multiple wallets with different configurations.
244
-
245
-
* Each wallet has its own configuration, allowing multiple wallets with different settings (e.g., different descriptors or backends).
246
-
* You can override saved configuration values for a single command by specifying them explicitly (e.g., `--client-type esplora` or `--url https://mempool.space/signet/api`).
0 commit comments