Skip to main content
The Swap API converts one token into another — same-chain (e.g. USDC → USDT on Polygon, via Rach’s on-chain FiatSwapV2 proxy) or cross-chain (e.g. Polygon → BSC, via a bridge). Quote first, then execute. Authenticate with your Payments API key (X-API-Key).
Base URL: https://api.rach.finance/api/v1/ · Auth: X-API-Key (quote is public)

1. Get a quote

GET /swap/quote is public — no key required.
Response
to_amount_min reflects slippage protection — the swap reverts if output would fall below it.

2. Execute the swap

Run the swap for a customer wallet. Pass amount_out_min (use the quote’s to_amount_min) to protect against slippage.
Response

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.
See the Swap endpoints in the Payments API Reference.