Accountless Guest Swap (/swap)
How visitors swap crypto without creating an account using dedicated, never-reused deposit addresses, Fixed vs Float pricing, fail-closed captcha protection, non-leaking liquidity gating, and audited operator resolution.
2 min readUpdated 25 November 2026convert, guest-swap, accountless, fixed, float, deposit-address, captcha, refund
Guest Swap (/swap) gives your platform an accountless, Automated Exchange workflow (similar to FixedFloat or ChangeNOW): visitors pick a pair and network, choose Fixed or Float mode, paste their external recipient address (and an optional refund address), solve a fail-closed captcha (guest_swap), and receive a dedicated one-time deposit address with a lookup code (SWP-...).
No login is created or required for /swap or /swap/{code}.
Key guarantees
- Strictly single-use, never-reused deposit addresses. Every swap allocates a brand-new keypair (EVM, UTXO, SOL, TRON) or an isolated Monero Account-0 subaddress (
guest_swap:<id>) inconvert_guest_deposit_addresswith a monotonic per-chainderivationIndex. Guest deposit rows are completely disjoint from customerwallet_datarows, checked against both guest and platform wallets for collisions, andEXPIRED_UNUSEDaddresses are never reassigned.TONdeposits are refused explicitly. - Internal platform addresses rejected. Any address belonging to
ecosystem_master_wallet, customerwallet, orconvert_guest_deposit_addressis rejected (400) as a recipient or refund address. - Fail-closed
"guest_swap"captcha. Creating a swap enforcesverifyCaptchaOrThrow(..., "guest_swap")before allocating any deposit address (503if captcha service cannot validate). - Non-leaking liquidity gating. Destination payout capacity is verified against available house/pool liquidity before quoting or accepting a swap. Refusals return
409with "This swap pair or amount is temporarily unavailable. Please try a smaller amount or check back shortly." — raw master, hot, or pool balances and shortfalls are never revealed. - Hash-before-broadcast payouts. Payouts record
payoutTxHashandpayoutFinality(onSigned) in the database before broadcasting, preventing blind duplicate sends across crashes or restarts.
Fixed vs Float execution
- Fixed (
FIXED) locks the quoted payout atconvertGuestFixedSpreadBps(default100bps) forconvertGuestQuoteTtlSecseconds. Confirmed deposits within ±1% settle automatically; underpayments or overpayments outside ±1% are never settled at a wrong rate and route toREFUND_REQUIRED(when arefundAddressis present) orNEEDS_REVIEW. - Float (
FLOAT) quotes an indicative estimate and computes the final payout at confirmation time using live orderbook pricing plusconvertGuestFloatSpreadBps(default50bps), enforcing[convertGuestMinUsd, convertGuestMaxUsd].
Late deposits, refunds & post-completion sweeps
- Unused expiry:
convertGuestExpiryruns every 2 minutes (including in drain mode) to transition unfunded past-deadlineAWAITING_DEPOSITswaps toEXPIREDand their address rows toEXPIRED_UNUSED. - Late deposits: If funds arrive on an already-expired address,
convertGuestDepositPollmarks the addressFUNDEDand moves the swap toREFUND_REQUIRED(ifrefundAddresswas provided) orNEEDS_REVIEWso funds are never silently swallowed. - Post-completion sweeps: Once payout confirms (
COMPLETED), funded Monero subaddresses are immediately markedSWEPT(funds sit directly inmaster_walletAccount 0), while EVM native deposit keys sweep net funds to the chain's master wallet. - Operator console: Admins with
view.convert.ordercan inspect all guest swaps and sweep states at Admin → Convert → Activity → Guest Swaps (/admin/convert/guest). Operators withmanage.convert.sendcan run audited Retry Payout, Refund, or Mark Resolved actions with mandatory audit notes.