← Back to Glossary

Submarine Swaps

A submarine swap is an atomic exchange between bitcoin on the blockchain and bitcoin on the Lightning Network. The two legs are linked by a single secret: the same preimage that settles the Lightning payment also unlocks the on-chain contract, so either both sides of the swap complete or both fail and refund.

How it works

One party locks on-chain coins in a hashed time locked contract that pays out to whoever reveals the preimage of a specified hash. The counterparty obtains that preimage only by settling a Lightning invoice for the equivalent amount, and revealing it to claim the Lightning payment simultaneously entitles the on-chain side to be claimed. Timelocks ensure that if anything stalls, funds return to their original owners. Swap providers such as Lightning Labs' Loop, launched in 2019, and Boltz run this service continuously. The main use is channel management: a routing node whose channels have filled up on one side can loop funds out to the chain, restoring inbound or outbound capacity without closing and reopening channels.

In the gold vs bitcoin debate

Submarine swaps let bitcoin move between its settlement layer and its payment layer without either party trusting the other, a bridge with no toll keeper. The historical contrast is instructive: converting vaulted gold into spendable claims always required a bank, and the trustworthiness of that conversion is exactly what failed as gold-backed systems evolved toward pure fiat. Bitcoin's layers exchange value through cryptography instead of custody.

Ready to convert your gold to Bitcoin?

Get Your Free Kit →