API Sample Request/Response
Overview
The Carbium Swap API is your gateway to precision-driven DeFi infrastructure on Solana, offering a streamlined suite of endpoints for developers to effortlessly execute, optimize, and scale token swap operations. Built to handle everything from real-time quoting to advanced MEV protection bundling, the API ensures maximum efficiency with minimal complexity, empowering you to integrate seamless token exchange capabilities into your projects.
What’s Included
The API sample tree outlines the fundamental endpoints you need to leverage the full potential of Carbium Swap:
- Swap: Create and execute base64-encoded transactions for token swaps with ease.
- Quote: Obtain optimized trade quotes, ensuring the most efficient token routes for every swap.
- All Quote: Access comprehensive, aggregated liquidity quotes from multiple Solana providers to guarantee the best rates.
- Custom Fee: Set personalized fee structures for your swaps, tailoring them to your unique requirements.
- Txn Bundle: Combine your swap transactions with Jito Tip integration, enabling enhanced MEV protection and improved execution efficiency.
This refined version delivers clarity with a touch of depth, highlighting the API’s powerful role in advanced token swap operations. Let me know if you'd like further refinement!
Endpoints:
No. | API | Description | Endpoint |
---|---|---|---|
1 | Swap | Get the base64 transaction for performing a swap with the provided input dex. | https://docs.spiderswap.io/reference/swap |
2 | Quote | Get the quote for performing a swap with the provided input dex. | https://docs.spiderswap.io/reference/quote |
Updated 22 days ago