Preface

BTC can be recovered from the tBTC v2 bridge after the expiration of the “refundLockPeriod” which is currently set 9 months. The reasons for this time frame are beyond the scope of this article.

<aside> 🚨

The official docs are available here:

https://github.com/keep-network/tbtc-v2/blob/main/typescript/scripts/README.adoc

</aside>

Table of Contens

Prerequisites

The refund script should be executed in a Linux environment.

0. WSL

If you’re on Windows, you can use WSL, Windows Subsystem for Linux. It’s a free app from the Windows App Store. Search for “WSL Ubuntu 22.04” and install.

Ubuntu 22.04 LTS in the Microsoft Windows App Store

Ubuntu 22.04 LTS in the Microsoft Windows App Store

Start the application once it’s installed.

You should see a terminal command prompt similar to

image.png

It’s possible you’re asked to provide a new user name and password.

Errors during WSL Install

Error 0x80370114: this error can occur for various reasons, generally it’s related to the Hyper-V, Virtual Machine Platform and/or Windows Subsystem for Linux feature(s) being disabled.