> For the complete documentation index, see [llms.txt](https://docs.xft.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xft.finance/learn/opcodes/submarine-swaps.md).

# Submarine swaps

**Submarine swaps** are trust-minimized atomic swaps of offchain stablecoins for onchain stablecoins. A payment secured by an HTLC is routed over the BITNET to a service provider who creates an onchain output paying the same HTLC. The onchain receiver can settle the HTLC to claim its funds, allowing the BITNET HTLCs to be settled like normal.
