This is a simple project that fixes a passphrase if one of the words was noted down incorrectly.
Note: It currently only works for English BIP-39 words. It also works for P2PKH, P2SH, and Bech32 type addresses. We are also using standard derivation paths.
You can download Python from the official website: https://www.python.org/downloads/
After downloading the installer, run it and follow the instructions.
pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org. If you are using a different version of Python, you can get pip by following instructions here: https://pip.pypa.io/en/stable/installation/
After installing Python and pip, navigate to the project directory in your terminal and run the following command to install the project requirements:
pip install -r requirements.txt
This uses the API from blockcypher.com to query balances. You will therefore need an API key from them (that goes in .env).
Note, to keep within the API limits (e.g. "beta"), you may want to restrict you usage to checking word by word and only up to 1 or 2 words per hour.
Before running the program, you need to set up your environment variables. Copy the .env.example file to a new file named .env and replace the placeholder values with your actual values.
To run this program, use the following command:
python fixer.py "witch collapse practice feed shame open despair creek road again ice least" "passphrase" 7
Note that the numbering starts from zero.
Replace witch collapse practice feed shame open despair creek road again ice least with your 12 or 24 word BIP-39 seedphrase, passphrase with your passphrase (if any), and the number 7 with the word that you think is incorrect (leave it blank and it will iterate through all the words - but you'll need a big plan with Blockcypher - although iterating through all words isn't fuly tested so best to do word by word).