How BTC to XMR atomic swaps work
The 30-second version
You want to trade Bitcoin for Monero without sending your coins to a centralized exchange, without KYC, and without trusting the person on the other side. This site does it with a cryptographic protocol called an atomic swap.
"Atomic" means all-or-nothing: either both halves of the trade complete, or neither does: the maker cannot take your BTC without revealing the key to your XMR. In the web app, a taker on our server runs your side of the swap, and your payment passes through its deposit wallet before the lock (see Using a browser wallet).
What is a "maker"?
A maker is someone who already holds XMR and is willing to sell it for BTC at a quoted rate. The taker (you) locks BTC in exchange; the maker's XMR is released to you atomically. Makers compete on price (lower spread = better rate for you).
Using a browser wallet
You swap from a Bitcoin browser extension. Your private keys never touch this site — the extension signs locally, we only ask for one sendBitcoin call. That payment goes to the deposit address of the taker that runs your swap on our server, which then funds the multisig lock.
Supported extensions
- Unisat Wallet — Chrome Web Store
- OKX Wallet — Chrome Web Store
Step-by-step
- Install one of the extensions above and fund it with Bitcoin.
- Click Connect wallet and approve the connection in the popup.
- Pick a maker, enter the BTC amount and paste your Monero receive address.
- Click Swap. Review the amount and deposit address in the extension popup, then sign.
- Watch the status panel confirm each step. When the swap completes, the XMR is sent to your address with no further action; if it stalls, see When things go wrong.
Using the eigenwallet desktop app
Our maker is not answering right now: no swap can start until it does.
What this site stores about you
Short answer: the record of each swap, and usage counts. Longer answer below, because "trust us" is not a policy.
Each open page of btc-xmr.com, app.btc-xmr.com and the .onion mirror also sends, once a minute while it is in view, a random number made when it opened and whether a wallet is connected, so we can count the pages open right now: the number is linked to no one, is never saved or logged, and is forgotten about 2 minutes after the page is closed or hidden.
Your history is kept on our server, by address
After you sign a message with your wallet, the Activity tab shows what our server holds for that Bitcoin address: each web app swap (amount, addresses, state), kept to run, finish or refund it. It follows the wallet to any browser that signs in with it. This browser also keeps its own list in localStorage, shown when the server cannot answer.
What the server keeps about a swap
To run a swap, your client talks to the backend, which brokers the atomic-swap protocol. The server needs the following fields and keeps them in the swap's record:
- The BTC amount and maker you selected.
- The Monero receive address you entered — the taker on our server sends the XMR to it.
- On-chain transaction IDs, which are public on the BTC and XMR blockchains anyway.
What the server never sees
- Your private keys or seed phrase — ever. The wallet extension signs everything locally; only broadcast-ready signatures leave your device.
- Any wallet or address you control other than the one you connected.
- The balance or transaction history of the Monero destination. XMR is private by design.
Reducing metadata leakage
- Browse over Tor or a reputable VPN.
- Use a Monero subaddress (starts with
8) and sweep after.
What happens during a swap
A swap is a short conversation between a taker and a maker with two blockchain deposits in the middle. In the web app the taker runs on our server, in the desktop app on your computer. The six steps below mirror the status panel.
1. Discovery
Your client asks a rendezvous point — a public directory server that lists who's online — for the current makers. It doesn't quote prices or hold orders; it only answers "maker X is reachable right now". The web app only discovers our own maker.
2. Quote
You pick a maker. Your client asks "how much XMR for this much BTC?" — the maker signs the numbers so any tampering in transit is detectable.
3. Lock BTC (on-chain, visible)
Your coins go into a 2-of-2 multisig: an address neither party can spend alone — both signatures are required. In the web app, your wallet first sends the BTC to the taker's deposit address on our server, and the taker broadcasts the lock.
4. Lock XMR (on-chain, visible)
Once the maker sees your BTC confirmed, they lock the matching XMR in their own 2-of-2 multisig. Both assets are now escrowed simultaneously.
5. Atomic reveal
You send the maker a signature that lets them spend the BTC — but only by publishing a secret number that also completes the XMR spend key you're missing. The instant they cash out BTC, you can cash out XMR.
6. Sweep XMR
Your client combines the revealed half with its own half to reconstruct the full XMR spend key, and sweeps the multisig into the address you pasted. Done.
Why you see two escrow txs
BTC and XMR live on different blockchains — you can't swap them directly. Both assets get locked in independent 2-of-2 multisigs on their respective chains. That's why you'll see two locking txson block explorers: one BTC lock, one XMR lock.
Neither lock goes to the counterparty's address. Both are held by cryptographic escrow until the atomic reveal step. Only the redeem transactions move the coins to their final destinations.
What if the maker disappears?
Every lock has timelocks. If the maker never locks XMR, or never claims the BTC, the protocol provides deterministic refund paths:
- Cancel timelock (~24 BTC blocks, ~4 hours): after this, you can publish the cancel transaction and start the refund flow.
- Refund timelock (after cancel): the BTC goes to the taker's refund address; in the web app, the taker's wallet on our server.
- Punish timelock (~144 blocks, ~24 hours): if you cheat by delaying too long, the maker can "punish" by seizing the BTC. This is the trade-off that makes the protocol trustless.
Where the secret keys live
Each side of the swap holds exactly half of the information needed to spend the other side's locked coins. Alone, neither half can move anything — it's two puzzle pieces, and they only fit together once the protocol reaches the reveal step.
- Taker (you) — holds the BTC refund key and one half of the Monero spend key.
- Maker — holds the BTC redeem key and the other half of the Monero spend key.
When the maker publishes the Bitcoin redeem transaction, they must include a secret number (call it s). Bitcoin makes this number publicly visible on-chain. The trick: s is mathematically the same value as your missing half of the Monero spend key. Your client picks it out of the BTC block, combines it with its own half, and now controls the XMR output.
The three timelocks
Timelocks are Bitcoin-script deadlines: transactions that become spendable only after a specific block height is reached. The protocol uses three of them, in series:
- t0 — BTC lock is mined: the clock starts.
- t0 + cancel (~24 BTC blocks): if no redeem yet, either side can publish the cancel tx to move the multisig into its refund-ready state.
- t0 + cancel + refund: the refund tx becomes spendable; the taker publishes it.
- t0 + cancel + punish (~144 blocks after cancel): if you didn't refund in time, the maker can take the BTC — preventing you from holding the XMR lock hostage forever.
Where the cost comes from
There is no platform fee. The full cost of a swap is the sum of three on-chain / market components:
- Bitcoin miner fees — you pay for the lock transaction. In the web app there is one more: your wallet's fee for the payment to the taker's deposit address; the lock fee comes out of a small amount added to that payment, shown before you sign. In the refund path you also pay for cancel + refund. Fees scale with mempool pressure.
- Monero fees — small: the maker pays the fee of the XMR lock, and the sweep to your address pays its fee out of the locked XMR.
- Maker spread — the premium over the live market price that the maker charges for providing liquidity and on-chain risk. This is public and signed into every quote, so you see it before committing BTC.
The quote screen shows the effective rate so you can compare it to spot. If a quote looks too good, it probably is — the maker may go silent and force you into the refund path. Prefer makers with reputation.
AXBT and AXMR are CRC-20 tokens. CRC-20 is a token ledger on Bitcoin mainnet: a balance belongs to a Bitcoin address, and a transfer is an ordinary Bitcoin transaction whose OP_RETURN output carries the amount, counted once confirmed. AXBT is the ledger's BTC-backed token, minted against BTC locked in a vault. AXMR is our bridge's token: you get it for XMR sent to the bridge and redeem it for XMR. Explorer and docs: crc20.org. Protocol: crc.garden.
When things go wrong
The protocol is designed so a stalled swap ends in a delay and a refund, as long as the refund is published in time. Here's what each failure mode looks like and what you should do.
Sign rejected in the wallet popup
No BTC was broadcast. Click Re-send BTC (only shown when we're sure nothing went out) to re-open the popup. It hides once the tx is on-chain.
BTC was sent but the swap errored
Your BTC landed in the taker's internal wallet but the session died before a 2-of-2 lock could be built. Click Recover BTC on the swap's page under Activity: it sends the coins back to the wallet address you connected with. If it is refused (another swap may be running), try later or write to [email protected] with your swap ID.
Wallet extension is locked / tab duplicated
Unlocking triggers accountsChanged and the page auto-reconnects. Duplicating a tab never re-asks you to sign: we persist the broadcast marker in localStorage and detect progress past Send BTC.
"Confirming on-chain" is taking a while
BTC confirms when a miner includes your lock — 10–30 min depending on mempool and fee. Monero locks confirm every ~2 min but the protocol waits for 10 confirmations.
The maker went silent after my BTC lock
The taker waits for the cancel timelock (~4 hours), publishes the cancel tx, then the refund. In the web app the refunded BTC lands in the taker's wallet on our server: if it is not back in your wallet, write to [email protected] with your swap ID.
For the cryptographers
Skip this section if you're not into elliptic curves. For everyone else: the protocol is the one specified in the COMIT xmr-btc-swap paper (Hinterwaelder, Bergmann, et al.), implemented by eigenwallet / unstoppableswap.
Key cryptographic primitives
- Adaptor signatures (Schnorr-style, on BTC via
scriptless scripts) encode the reveal: Alice gives Bob a signature that is only valid once Bob publishes a secrets. Publishingsis what releases the BTC output of the multisig — andsis the XMR spend key share. - Monero 2-of-2 view+spend key split: each party holds half of the spend key and a shared view key. Neither can spend alone; combining the halves unlocks the multisig output.
- CLSAG ring signatures keep the Monero lock and sweep transactions unlinkable on-chain.
Why it's atomic
The same secret s is (a) the adaptor value the BTC signature needs and (b) half of the XMR spend key. The instant Bob publishes the adapted BTC signature on-chain, s becomes public — letting Alice extract the full XMR spend key and sweep. Bob cannot take BTC without handing Alice XMR, and Alice cannot take XMR without having given Bob BTC first.
Frequently asked (mid-swap) questions
I see a lock tx on the explorer but my XMR wallet still shows nothing. What's wrong?
Nothing is wrong. The XMR lock tx sends the maker's XMR into a 2-of-2 multisig — not to your receive address. Your XMR wallet will only see a deposit once the atomic reveal completes and your client sweeps the funds. The sweep is a separate on-chain tx that happens at the very end.
How long does a typical swap take?
Usually 30 to 60 minutes. The two slow parts are (a) a BTC confirmation after you send, and (b) waiting for 10 XMR confirmations before the encrypted signature is safe to send. If the mempool is congested or BTC fees spike, the first half takes longer.
The swap looks stuck. What do I do?
Leave it running. If the session errored before the 2-of-2 lock, the Recover button on the swap's page under Activity sends your BTC back to the wallet you connected with. If the lock succeeded and the maker went silent, the cancel timelock (~4 h) kicks in and the taker moves to the refund flow. Closing the tab is safe — state lives server-side. Anything left unclear: write to [email protected] with your swap ID.
Do I need to trust the maker?
No. The cryptographic protocol enforces atomicity — the worst a malicious maker can do is stall and force you into the refund path. They cannot steal the BTC you locked without also releasing the XMR to you.
Network & privacy
The implementation details below matter for adversaries and auditors. Casual users can skip this section.
- Transport: peer-to-peer over
libp2p(TCP + QUIC + WebSocket) with Noise handshake encryption between taker and maker. Both sides can optionally route all traffic through Tor for IP-level unlinkability. - Discovery: rendezvous points are libp2p registry servers — anyone can run one. Makers register there; takers query the registry to get maker addresses. No funds, order books, or quotes are stored by rendezvous servers.
- Price feeds: makers subscribe to Kraken / Bitfinex / KuCoin WebSocket streams, read the ask price, and quote a spread above it. Every quote is signed and valid for seconds, so a stale or tampered quote is rejected by your client.
Threat model
- Malicious maker: can only stall — the timelock opens the refund path, and the BTC comes back minus network fees if the refund is published in time.
- Malicious taker: symmetric — the punish timelock lets the maker reclaim BTC if the taker tries to rug after seeing the XMR lock.
- Rendezvous compromise: worst case is censorship or surfacing fake makers. Your client verifies every quote signature and every on-chain lock before releasing any funds.
- Chain reorg: the protocol waits for confirmations (one on the BTC lock, 10 on the XMR lock) before each irreversible step.
Open-source components
The swap engine, the maker daemon (asb), and rendezvous node are open-source Rust binaries from the eigenwallet/core project. This site glues them together with a Python API and a React UI.
Glossary
Quick reference for terms you'll encounter on this page and in swap status messages.
- Taker — The party initiating the swap — you.
- Maker — The party holding XMR and quoting a rate.
- Spot price — Live midpoint on reference exchanges (Kraken, Bitfinex, KuCoin).
- Spread / Markup — Premium the maker charges above spot — their profit margin.
- 2-of-2 multisig — Address requiring both parties' signatures. Neither can spend alone.
- Lock tx — On-chain tx depositing coins into the multisig escrow.
- Redeem tx — Tx spending the multisig output to final destinations.
- Timelock — Script-enforced deadline after which a tx becomes spendable.
- Cancel timelock — ~24 BTC blocks (~4h). Opens the refund path after this.
- Refund timelock — After cancel: the BTC goes to the taker's refund address; in the web app, the taker's wallet on our server.
- Punish timelock — ~144 blocks (~24h). Maker can seize BTC if you misbehave after cancel.
- Adaptor signature — Schnorr signature that reveals a secret on publication — the atomic reveal primitive.
- Rendezvous point — libp2p directory listing reachable makers. Holds no funds or orders.
- Session — A swap tracked by this web app (UUID like bb63cfe6…).
- Binary swap — The same swap inside the ASB daemon's sqlite (UUID like 3f1d692d…).
- ASB — Automated Swap Backend — the maker-side Rust daemon that fulfills swaps.
- Rendezvous flood — A DoS where fake peers spam introductions; mitigated by per-IP rate limits.