Practical overview
When it fits
Use Walletool when you have a Bitcoin-QT or Litecoin-QT wallet.dat file and need its addresses and private keys printed through a command-line workflow.
Who it is for
- Bitcoin-QT or Litecoin-QT wallet holders who need to extract addresses and private keys from a wallet.dat file.
- Developers building local workflows that process supported wallet.dat files.
Documented uses
- Read a Bitcoin or Litecoin wallet.dat file.
- Print the addresses and private keys associated with the file.
Requirements & limits
- Requires Python 3.x and the bsddb3 module.
- The documented version value is 0 for Bitcoin and 48 for Litecoin.
- The stated output is a printed list of addresses and private keys.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Extract addresses and private keys from a wallet.dat file
Run the documented extraction command for a Bitcoin or Litecoin wallet file.
Before you start
- Python 3.x
- The bsddb3 module
- A wallet.dat file
Steps
For Bitcoin, run the command below.
python wt_extract_keys.py -d wallet.dat -v 0For Litecoin, run the command below.
python wt_extract_keys.py -d wallet.dat -v 48Read the printed list of addresses and private keys.
Expected outcome
A list of addresses and private keys is printed for the selected wallet file.
Guide limitations
- The documented commands cover Bitcoin-QT and Litecoin-QT wallet files.
- The instructions do not describe other wallet formats or a subsequent import workflow.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 18 October 2026
- Original website title
- akx/walletool · Official homepage title · retained in its source language

