I'm posting instructions to recover a byteball wallet from its seed phrase to help anyone with a corrupted wallet folder they didn't back up.
Download this, install it leaving all the settings at their defaults, then restart your computer.
https://nodejs.org/dist/v6.9.3/node-v6.9.3-x86.msiCreate a folder named git in your C: folder, then download this.
https://github.com/git-for-windows/git/releases/download/v2.11.0.windows.1/PortableGit-2.11.0-32-bit.7z.exeYou might have to temporarily disable your antivirus for the next steps. My avast antivirus warned me PortableGit-2.11.0-32-bit.7z.exe contained suspicious files and deleted some. However, my antivirus has not been updated for a long time, a virustotal scan shows the latest version of avast considers it safe.
https://www.virustotal.com/en/file/fccec9350c1cb58a5e6d84d307d4f9f43ab9d58d93c8de67056416539d199002/analysis/1483612263/Run the PortableGit-2.11.0-32-bit.7z.exe file as administrator, and a window should open asking you where you want to extract it to.
Select the git folder you created earlier and click OK.
Afterwards open the git folder and run git-bash.exe as administrator.
A command prompt window should open.
Type the line of text below into it and press your enter key.
git clone
https://github.com/byteball/headless-byteball.gitWait until MINGW32 appears in a line of text with a flashing cursor at the end of it before doing each of the following steps.
Type the line of text below into it and press your enter key
git clone
https://github.com/byteball/byteballcore.gitType the line of text below into it and press your enter key
cd /headless-byteball
Type the line of text below into it and press your enter key
npm install
It might take a while before the previous step completes and MINGW32 appears in the command prompt window again.
Afterwards type the line of text below into it and press your enter key
node start.js
Eventually you should get a prompt inside the command line window saying "please name this device"
Type any name you want and press enter.
Next you should get a prompt saying "passphrase for your private key"
Type any password you want and press enter.
A lot of text should get written in the command prompt window ending with the line "To release the terminal, type Ctrl-Z, then 'bg'".
A few lines above the bottom of it there should be a line of text similar to the one below
my pairing code:
[email protected]/bb#randomstring
Copy and save the bit after "my pairing code:". In the case above that would be save
[email protected]/bb#randomstring
Click the red x at the top of the command prompt window to close it.
A warning window should open saying "processes are running in session: close anyway?".
Press OK and the command prompt window should close.
Start your original byteball wallet that contained your coins, open global preferences, and look for 'Device address', for example 04JOZCX5QFI2HMPSDDDTWUYUQ52DYNM6Q. Copy and save it for later.
Click the windows orb at the bottom left of your windows desktop and write the text below into the search box, then press enter.
%appdata%
A hidden folder should open. Navigate to the folder named local that's inside the appdata folder. Open the folder named headless-byteball inside it.
Delete everything inside it apart from keys.json and conf.json.
Open the file named keys.json in notepad
To the right of where it says "mnemonic_phrase" change the seed phrase to the one from your original byteball wallet, then save and close the file.
Open the file named conf.json in notepad
It should look something like the line below. Copy and save the deviceName, in this case that's test5.
{
"deviceName": "test5"
}
Delete the contents of the conf.json file and replace them with this
{
"deviceName": "test2"
, "control_addresses" : ["0D27EAWBJHN366A4CZ6QAEY6CXXHUQWVA"], "payout_address": "TKHVHEXL7PORCIIUDTBDO25LSI5G3UIV"}
Delete the bit after control_addresses (in this case 0D27EAWBJHN366A4CZ6QAEY6CXXHUQWVA), and replace it with the device address you saved earlier (example 04JOZCX5QFI2HMPSDDDTWUYUQ52DYNM6Q).
Delete the bit after deviceName (in this case test2), and replace it with the deviceName you saved earlier (example test5).
Delete the bit after payout_address (in this case TKHVHEXL7PORCIIUDTBDO25LSI5G3UIV), and replace it with your current receiving address from your GUI byteball wallet.
Save and close the file.
Afterwards open the git folder again and run git-bash.exe as administrator.
A command prompt window should open.
Type the line of text below into it and press enter
cd /headless-byteball
Type the line of text below into it and press enter
node start.js
If there are no problems lines like the ones below should appear somewhere in the command prompt.
-----------------------
remote access allowed from devices: 04JOZCX5QFI2HMPSDDDTWUYUQ52DYNM6Q
payouts allowed to address: TKHVHEXL7PORCIIUDTBDO25LSI5G3UIV
-----------------------
Afterwards copy the pairing code from the command prompt window (for example
Aqv3YdogDJw6aHj8nRMT8/
[email protected]/bb#randomstring)
Open the menu of your GUI byteball wallet and then click "paired devices".
Click "add a new device", then click "accept invitation".
Paste the pairing code you saved into the text box and press the "pair" button
At the bottom of the GUI wallet there should be a text box for you to text messages to your headless wallet device. Type one of the instructions in bold below to text your headless wallet a message, then press enter.
balance: to request the current balance on the headless wallet;
address: to get to know one of the wallet's addresses, you use it to refill the wallet's balance;
pay to request withdrawal from the headless wallet to your payout_address.