Skip to main content

When a Cross-Chain Bitcoin Swap Is Truly Final

Oliver Bennett 7 min read

Bitcoin produces a block every 10 minutes on average, yet a cross-chain swap that touches mainnet usually needs 30 to 60 minutes before anyone can call it settled. That distance between the first confirmation and a genuinely final state is where the real engineering sits. Anyone building on or integrating a non-custodial cross-chain protocol benefits from understanding why it exists.

Finality Inside One Chain and Across Two

Inside one blockchain, finality is fairly easy to reason about. Pick a confirmation depth that matches the value at risk and the chain's reorg history, then wait. Across Bitcoin, three to six confirmations covers the practical range for most transaction sizes, and since a block lands roughly every 10 minutes, that assurance arrives in 30 to 60 minutes.

Cross-chain finality differs structurally. A Bitcoin-to-Ethereum swap never arrives at a single finality event; it arrives at two, one on each independent chain. The atomic swap's settlement guarantee holds only when both sides are treated as final at once.

The hinge of any HTLC swap is the preimage reveal. One party invents a secret, hashes it, and locks funds against that hash on its chain. The counterparty then locks matching funds against the same hash on the other chain. Once the initiator broadcasts the preimage, the counterparty sees it and can claim its side. Finality enters the picture because the reveal transaction and the claim that follows both have to confirm on their respective chains before either party holds an unconditional settlement guarantee.

Confirmations on Two Chains Do Not Line Up

Required confirmation depths compound the total window. Take a Bitcoin-to-Ethereum swap: we aim for three Bitcoin confirmations on the initial lock, which puts the reveal at roughly the 30-minute mark. The claim on the Ethereum side must then clear Ethereum's finality mechanism, and post-merge that means checkpoint slots rather than a plain block count.

Both chains are tracked in parallel here rather than one being crowned the primary settlement chain. The status integrators see reflects the lower confidence of the two. A swap reads SETTLEMENT_COMPLETE only after both chains clear their thresholds. That choice makes the API a little less simple, but it tells the truth about where a swap actually stands.

Confirmation depth belongs to each chain in the integration set. Bitcoin mainnet defaults to three confirmations for smaller swaps and six above a high-value threshold. Ethereum relies on checkpoint finalization. Liquid Network uses five confirmations. Integration partners can adjust these, because a retail wallet moving small amounts carries a different risk appetite from a platform shifting treasury positions.

The Guarantee an HTLC Adds That Custody Cannot

An HTLC swap has a binary outcome at its core: both parties get the funds they expected, or neither does. No partial state leaves one side paid and the other empty. That is the meaning of atomic in atomic swap.

The claim here is narrow and specific. Custodial settlement can be faster and, in many ways, more convenient. What it cannot give you is cryptographic proof that you will receive the funds, or proof that your original funds remain recoverable, all without trusting a third party to keep its word. An HTLC supplies exactly that.

A custodial exchange can settle faster because it swallows the cross-chain reorg risk itself. If a Bitcoin transaction re-organises after the exchange has credited your ETH, the exchange eats the loss. The price is that you handed it custody for the length of the swap and now depend on its solvency, its uptime, and its willingness to honour the trade at the precise moment you need it.

The Latency Cost of Going Non-Custodial

In ordinary conditions, the custodial route is quicker. A well-run exchange can turn BTC into ETH within a few minutes. Our protocol, waiting on three Bitcoin confirmations plus Ethereum finalization, takes 30 to 60 minutes. That cost is real and worth stating plainly.

Non-custodial settlement claws back ground in the edge cases. Withdrawal queues at busy exchanges. Maintenance windows that happen to fall during volatile markets, often the exact moments you want to move. Security reviews imposed unilaterally on large withdrawals. In those situations the non-custodial route is not slower. It is the only route still running.

The honest version: if you move funds often, in calm conditions, and you trust your custodial counterparty, custody may well suit routine operations. For someone holding meaningful self-custody Bitcoin who needs dependable execution when markets turn strange, the HTLC guarantee carries a value that average latency numbers never show.

Why Confirmations Are Probabilistic

No proof-of-work chain delivers mathematical finality. Bitcoin's longest-chain rule means a block can, in theory, always be reorganised. The odds fall exponentially with depth, until a six-confirmation reorg would demand more computing power than any rational attacker would spend against ordinary transaction values.

Three Bitcoin confirmations is the default for smaller swaps; six kicks in above a configurable value threshold. The line between the two tiers sits at the protocol layer and reaches integration partners as a setting. It is not a single answer for everyone. A platform moving large treasury sums should insist on six confirmations and treat the extra 30 minutes as the fair price of a stronger guarantee.

Where a chain offers economic finality, Ethereum being the main example in our current set, we follow checkpoint finalization rather than block count. A transaction inside a finalised checkpoint carries a materially different risk profile from one that is confirmed but not yet checkpointed. The state machine keeps those apart because the distinction decides whether a settlement guarantee still holds once volume grows.

How to Show Settlement Status to Users

Most user-experience friction collects in the gap between PREIMAGE_REVEALED and SETTLEMENT_COMPLETE. The secret is out and broadcast, and in practice the swap is done: neither side can leave with both sets of funds. But the claim transaction is still awaiting confirmation on one chain.

Testnet work with early-access partners showed this pattern again and again. A wallet team surfaced success the moment the preimage was revealed, then fielded support messages from a small slice of users whose funds had appeared on one chain but not the other. Those messages did not come from failed swaps. They came from swaps finishing normally, a little behind schedule, with a muddy status in the final stretch.

The pattern we suggest: treat PREIMAGE_REVEALED as a positive milestone carrying an estimated time to SETTLEMENT_COMPLETE, not as the final success state. That framing matches reality, because the swap is locked in and final confirmation is under way. The settlement status endpoint returns the two states separately, with an estimated window built from current mempool conditions and the confirmation depth in force.

Back to Protocol Notes

Build Your First Swap

The API and SDK bring HTLC atomic swaps into your application. Testnet access needs no approval step.