2020-12-27 01:10:02 +01:00
|
|
|
## chantools walletinfo
|
|
|
|
|
|
|
|
|
|
Shows info about an lnd wallet.db file and optionally extracts the BIP32 HD root key
|
|
|
|
|
|
2020-12-27 01:40:51 +01:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
|
|
Shows some basic information about an lnd wallet.db file,
|
|
|
|
|
like the node identity the wallet belongs to, how many on-chain addresses are
|
|
|
|
|
used and, if enabled with --withrootkey the BIP32 HD root key of the wallet. The
|
|
|
|
|
latter can be useful to recover funds from a wallet if the wallet password is
|
|
|
|
|
still known but the seed was lost. **The 24 word seed phrase itself cannot be
|
|
|
|
|
extracted** because it is hashed into the extended HD root key before storing it
|
|
|
|
|
in the wallet.db.
|
2023-04-11 16:34:48 +02:00
|
|
|
In case lnd was started with "--noseedbackup=true" your wallet has the default
|
|
|
|
|
password. To unlock the wallet set the environment variable WALLET_PASSWORD="-"
|
|
|
|
|
or simply press <enter> without entering a password when being prompted.
|
2020-12-27 01:40:51 +01:00
|
|
|
|
2020-12-27 01:10:02 +01:00
|
|
|
```
|
|
|
|
|
chantools walletinfo [flags]
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-27 01:40:51 +01:00
|
|
|
### Examples
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
chantools walletinfo --withrootkey \
|
|
|
|
|
--walletdb ~/.lnd/data/chain/bitcoin/mainnet/wallet.db
|
|
|
|
|
```
|
|
|
|
|
|
2020-12-27 01:10:02 +01:00
|
|
|
### Options
|
|
|
|
|
|
|
|
|
|
```
|
2022-11-16 16:31:31 +01:00
|
|
|
--dumpaddrs print all addresses, including private keys
|
2020-12-27 01:10:02 +01:00
|
|
|
-h, --help help for walletinfo
|
|
|
|
|
--walletdb string lnd wallet.db file to dump the contents from
|
|
|
|
|
--withrootkey print BIP32 HD root key of wallet to standard out
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
|
|
```
|
2025-10-21 21:27:30 +02:00
|
|
|
--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
|
2020-12-27 01:10:02 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|
|