Widget - swaps
About
Onramper's Swaps feature allows customers to swap crypto tokens using one of the supported swap providers.
- Onramper Swap supports 100,000 tokens across 50+ networks including EVM, Bitcoin, XRP, SVM, and Cosmos.
- Using the XOswap engine built by Exodus, liquidity is sourced from 11+ sources, both centralized and decentralized, ensuring the best rates available.
Contact your customer success manager to enable specific tokens.
Enabling Swaps
To enable the swaps feature, add the following query parameter within your widget integration URL:
supportSwap=true&mode=swap
For example, the URL to activate swaps will be:
https://buy.onramper.com?apiKey=pk_prod_01HETEQF46GSK6BS5JWKDF31BT&supportSwap=true&mode=swap
How it works
On web: Onramper allows users to swap their crypto from any wallet compatible with WalletConnect. Users can connect their wallet using the WalletConnect interface.
Within wallets: When Onramper Swaps is opened using an in-wallet browser that supports WalletConnect, the wallet connection and transaction initiation will work out of the box.
Customizing Swaps
Onramper Swaps functionality can be customized using URL parameters . The design of the Swaps widget can be customized with our wizard and the related design-parameters.
Updated about 1 month ago