Partners
Add private cross-chain swaps to your app.
Wallets, communities, blogs, bots and aggregators can offer native BTC, ETH, SOL and stablecoin swaps across 18 networks — no accounts for your users, every route named, and TorrentSwap never holds funds.
Widget
One iframe. Quotes, deposit address, QR, wallet payment and tracking all included.
API
Three calls: quote, deposit address, status. Built for listing aggregators and bots.
Volume partners
Higher rate limits, custom pairs and revenue-share discussions for serious volume.
Embed the widget
Paste this where you want the swap box. Set from and to to any asset id from routes.json to preselect a pair.
<iframe
src="https://torrentswap.com/widget?from=bitcoin-btc&to=ethereum-eth"
title="TorrentSwap cross-chain swap"
width="100%" height="720" style="border:0;border-radius:24px;max-width:520px"
allow="clipboard-write"
></iframe>Integrate the API
JSON over HTTPS, no key needed for moderate traffic (rate-limited per IP). Quote tokens are valid for two minutes; always show your user the provider name, the minimum received and the deposit address exactly as returned.
POST https://torrentswap.com/api/quote
{ "sellAssetId": "bitcoin-btc", "buyAssetId": "ethereum-eth", "sellAmount": "0.05" }
→ { "routes": [ { "quoteToken": "…", "provider": { "id": "NEAR", "name": "NEAR Intents" },
"expectedReceive": "1.5245", "minimumReceived": "1.5016",
"estimatedDurationSeconds": 2020, "badges": ["best_rate"], "expiresAt": "…" }, … ] }POST https://torrentswap.com/api/swap/channel
{ "quoteToken": "…", "destinationAddress": "0x…", "refundAddress": "bc1q…" }
→ { "depositAddress": "bc1q…", "expiresAt": "…", "swapId": "…",
"payment": { "kind": "utxo", "scheme": "bitcoin", "amount": "0.05", "decimals": 8 } }POST https://torrentswap.com/api/swap/status
{ "swapId": "…" }
→ { "status": "awaiting_deposit" | "confirming" | "exchanging" | "sending"
| "completed" | "refunded" | "failed" | "expired", "checkedAt": "…" }Talk to us
Planning meaningful volume, a listing, or a Telegram bot? Email contact@torrentswap.com with your project and expected monthly volume.