XO Swap API
This API allows you to: fetch exchangeable pairs, preview the amount you will receive, and execute swaps.
🔐
Authorization Required: All API requests require specific headers. See the Authorization guide for details.
Choose Your Integration Flow
XO Swap API supports two main integration flows. Choose the one that best fits your use case (or both!):
Direct Swaps
Best for: Cross-chain swaps and controlled rates
- Swap a predefined number of pairs (belonging to the same or different chains)
- The swap is as easy as a “send” transaction
- Get multiple rates or quotes for a pair
Indirect Swaps
Best for: Swapping a wide range of tokens within the same network
- Allows swapping every token with on-chain liquidity within our list of supported networks
- Execute swaps via smart contracts
- Near instant swap completions
Last updated on