Private swaps route through multiple CEX hops to provide maximum privacy. Like standard swaps, they use CEX tokens from the /tokens endpoint. Optionally uses Monero (XMR) for enhanced anonymity. This breaks transaction trails across exchanges, providing enhanced anonymity without requiring wallet connections.
Best For: Users who prioritize privacy and are willing to accept longer completion times (15-45 minutes) for enhanced anonymity.
Poll the status endpoint to track the multi-hop progress:
Copy
// Check swap statusconst status = await fetchFromHoudini('/status', { id: swap.houdiniId});console.log('Overall status:', status.status);console.log('Input leg:', status.inStatus); // First hop statusconsole.log('Output leg:', status.outStatus); // Second hop status
Private swaps have additional status stages for multi-hop routing:
Copy
0 (WAITING) ↓ User sends deposit1 (CONFIRMING) ↓ Deposit confirmed2 (EXCHANGING) ↓ First CEX hop processing3 (ANONYMIZING) ↓ Routing through privacy layer (XMR) ↓ Second CEX hop processing4 (COMPLETED)
Status Fields:
status: Overall swap status (0-8)
inStatus: First hop status
outStatus: Second hop status (private swaps only)
Polling: Check status every 30 seconds or more. Private swaps take 15-45 minutes due to multi-hop routing.
Cause: Multi-hop routing through 2 exchanges takes longerSolution: This is normal for private swaps. Monitor inStatus and outStatus to see which hop is processing.
Privacy Questions
Question: “How private is this really?”Answer: Private swaps break the transaction trail by routing through multiple exchanges. When XMR routing is used, it adds an untraceable intermediate step. However, this is not absolute anonymity - compliance checks still apply.