Whale's Exchange is live now!
We have just released the first public beta version of Whale's Exchange. Please come test it, break things, and help us improve!
TLDR: Web interface for reverse swaps (LN→BTC) with Electrum Swap providers. You have bitcoin in a Lightning channel, you can swap for on-chain bitcoin.
Note that this is currently beta software, expect errors. This first public release only supports reverse swaps. Only use amounts you’re fully okay to lose.AboutWhale's Exchange is an open-source non-custodial Electrum Swap interface based on Boltz Exchange frontend. To understand what Whale's Exchange is, it is important to understand what submarine swaps are and also understand the two projects that it is built on.
Submarine Swaps
Submarine SwapsSubmarine swaps are a type of atomic swap that allows users to exchange on-chain bitcoin with off-chain bitcoin and vice-versa. Lightning Network users may sometimes have too little or too much liquidity in their channels, and submarine swaps allow them to swap between on-chain and off-chain bitcoin without trusting a third party custodian.
A Forward Swap (BTC→LN) is a swap where the user swaps on-chain bitcoin (BTC) for off-chain bitcoin (LN).
A Reverse Swap (LN→BTC) is a swap where the user swaps off-chain bitcoin (LN) for on-chain bitcoin (BTC). In the first version of Whale's Exchange, only the reverse swaps are supported.
Boltz ExchangeBoltz Exchange pioneered the concept of atomic swaps on Bitcoin with simple to use interface. It evolved into a web service that allows users to swap between various digital assets, not just Bitcoin, on different layers and chains.
Electrum Wallet
Electrum is a popular Bitcoin wallet that has been around since 2011. It is a feature rich wallet and often among first ones to implement new Bitcoin features.
Electrum Swap is a protocol that pushes the concept of atomic swaps on Bitcoin to the next level by decentralizing the swap process and allowing anyone to run a swap server. It leverages Nostr that is used by the swap providers to publish their swap offers and to arrange swaps with the clients.
Whale's Exchange
Whale's Exchange combines Boltz Exchange web interface with Electrum Swap. It allows participating in Electrum swaps without needing to run Electrum wallet. This allows expanding the user base of Electrum Swap ecosystem to more users.
While the web interface and the background API bridge are obviously centralized, the swaps themselves preserve the trust-minimized character that is inherent to Electrum Swap protocol. Whale's Exchange never gains access to user funds, and users retain full control of their bitcoin throughout the entire flow of a swap.
Of course, the user always needs to trust the interface they are using, whether it is Whale's Exchange web interface or whether it is Electrum Wallet. Electrum Wallet is a much more mature project that has been around for more than a decade, and it has a solid reputation. Whale's Exchange is a new project that still needs to build its reputation and trust among its users. To achieve that, all parts of Whale's Exchange are open source, and we encourage everyone to review the code and verify that it does what it is supposed to do; or even better, to run your own instance of Whale's Exchange, locally or on your own domain with your own branding.
Therefore, we can say that Whale's Exchange is somewhere in between Electrum Wallet and Boltz Exchange in terms of how much trust you have to put into it as a user.
Whale's Exchange does not receive any fees from the swaps as it does not participate in the swaps at all. It only facilitates communication between the user and the swap providers.
Resources