Skip to content

Add "init" wallet support #192

Closed

Description

@notmandatory

Describe the enhancement

Currently all parameters need to be specified in env variables or as cli options for every request. With so many options this is hard to setup and use. It would be nice if a user could "initialize" a wallet name with all the parameters they need, such as descriptors, network, db, server, etc.

Maybe this could be done with Justfile that set the env variables, in a toml file, or in some sort of db file.

Use case

I want to initialize a Testnet wallet with two descriptors, a sqlite db file, and local regtest server url and authentication. Id like to store all these parameters once with my wallet name and then use them every time I specify that wallet name.

Additional context

Something like this is done with the bdk cli examples: https://github.com/bitcoindevkit/bdk/blob/542f9675c0716dfc5b4f3ab4e5320702e9f07a37/examples/example_cli/src/lib.rs#L72

Activity

  1. added
    enhancement
    on May 28, 2025
  2. self-assigned this
    on Jun 9, 2025
  3. nymius commented on Jun 17, 2025

    @nymius
    Contributor

    I did something similar in bdk-sp but using example_electrum from bitcoindevkit/bdk/examples, maybe is worth as inspiration: https://github.com/bitcoindevkit/bdk-sp/blob/develop/example-crates/justfile#L428

  4. tvpeter commented on Jun 17, 2025

    @tvpeter
    Collaborator

    I did something similar in bdk-sp but using example_electrum from bitcoindevkit/bdk/examples, maybe is worth as inspiration: https://github.com/bitcoindevkit/bdk-sp/blob/develop/example-crates/justfile#L428

    Thank you @nymius. I will take a look.

  5. added this to the CLI 1.1.0 milestone on Aug 12, 2025
  6. 1 remaining item

  7. added a commit that references this issue on Oct 15, 2025
  8. added a commit that references this issue on Nov 11, 2025
  9. added a commit that references this issue on Jan 16, 2026
  10. moved this from Todo to Done in BDK-CLIon Jan 19, 2026
  11. added a commit that references this issue on Jan 20, 2026
    b9cf2ac
  12. modified the milestones: CLI 2.0.0, CLI 3.0.0 on Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions