API
Last updated
Last updated
The SuperSwap API allows you to access SuperSwap's swap functionality programmatically, without needing to interact with the user interface. With this API, you can:
Generate a Quote:
Get an atomic quote for swapping between assets, allowing you to check the price of a trade before committing to it.
Execute a Swap:
Receive the necessary call data to execute the swap directly from the API, without having to manually assemble the transaction.
This API provides a seamless, efficient way to check quotes and execute swaps, whether you're building a trading bot, integrating swaps into your platform, or simply wanting to check prices without interacting with the UI. It can also be used to anonymously check quotes, ensuring privacy.
To ensure fair usage and prevent abuse, the SuperSwap API enforces the following rate limits:
Free & Open Tier: Up to 30 requests per minute
If you exceed the allowed limits, your requests may be temporarily blocked. To prevent disruptions, consider implementing retry logic with exponential backoff.
Custom Limits: For higher request limits, please contact us at
Quote a path for swapping between assets atomically. This can be used programmatically to check for a quoted price of a given trade without needing to wait for an assembled transaction to be created and provided. It can also be used to anonymously check quotes.
/quote
Token address to swap from (NATIVE for eth).
Token address to swap to (NATIVE for eth).
Slippage (%).
Amount of token to swap in Float.
Address of wallet to receive swap