X-API-Key).
Base URL:
https://api.rach.finance/api/v1/ · Auth: X-API-Key (quote is public)Amounts are in base units
1. Get a quote
GET /swap/quote is public — no key required.
Response
98046740 is 98.04674 USDT. The platform fee is 0.30%.
to_amount_min reflects slippage protection — the swap reverts if output would fall below
it.
Routing is automatic
You do not choose a venue. Rach picks it from the chains and tokens you pass:
If our contract cannot serve a same-chain pair (no pool or liquidity), the quote falls back
to LiFi automatically. Nothing is broadcast during quoting, so the fallback is free.
Execution currently starts from a POL or BSC wallet only. A request whose
from_chain
is anything else is rejected up front with a clear error — quotes still work for any pair.2. Execute the swap
Run the swap for a customer wallet. Passamount_out_min to protect against slippage — the
quote’s to_amount_min is exactly what you want here.
Response
status is pending when the transaction is broadcast — not when the swap has settled.
Rach confirms it in the background; poll history for the final confirmed or failed.
Cross-chain swaps can take several minutes to complete on the destination chain.
Re-quote if a quote is more than a few seconds old. If the live route can no longer deliver
your
amount_out_min, execution stops before anything is broadcast and returns an error
telling you to re-quote — your customer’s funds are never at risk from a stale quote.3. Track history
Same-chain swaps on Polygon and BSC route through Rach’s FiatSwapV2 proxy (0.30% platform
fee, applied on-chain). Cross-chain swaps bridge via an aggregator and take longer —
estimated_seconds reflects the route.
