chantools/doc/chantools_createwallet.md

48 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2024-03-12 13:06:32 +01:00
## chantools createwallet
Create a new lnd compatible wallet.db file from an existing seed or by generating a new one
### Synopsis
Creates a new wallet that can be used with lnd or with
chantools. The wallet can be created from an existing seed or a new one can be
generated (use --generateseed).
```
chantools createwallet [flags]
```
### Examples
```
chantools createwallet \
--walletdbdir ~/.lnd/data/chain/bitcoin/mainnet
```
### Options
```
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
--generateseed generate a new seed instead of using an existing one
-h, --help help for createwallet
--rootkey string BIP32 HD root key of the wallet to use for creating the new wallet; leave empty to prompt for lnd 24 word aezeed
2024-12-27 12:44:28 +01:00
--walletdb string read the seed/master root key to use for creating the new wallet from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag
2024-03-12 13:06:32 +01:00
--walletdbdir string the folder to create the new wallet.db file in
```
### Options inherited from parent commands
```
--nologfile If set, no log file will be created. This is useful for testing purposes where we don't want to create a log file.
-r, --regtest Indicates if regtest parameters should be used
--resultsdir string Directory where results should be stored (default "./results")
-s, --signet Indicates if the public signet parameters should be used
-t, --testnet Indicates if testnet parameters should be used
2026-03-04 07:01:23 +01:00
--testnet4 Indicates if testnet4 parameters should be used
2024-03-12 13:06:32 +01:00
```
### SEE ALSO
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels