The @quickscope/sdk
package includes a set of functions to generate and manage Solana swap transactions. These functions allow developers to build fully customized or automatically optimized swap transactions using data from Quickscope’s quote engine.
Functions
1. getSwapBest
getSwapBest
Generates a base64-encoded swap transaction using the best available quote. This function combines quoting and transaction generation, making it easy to perform optimized swaps with minimal input.
2. getSwapCustom
getSwapCustom
Builds a swap transaction targeting a specific liquidity provider, AMM program, or pool. This is ideal for advanced users who want fine-grained control over routing and execution behavior.
These swap functions enable developers to go from quote to executable transaction in just a few steps. Whether you're prioritizing best execution or building custom routing strategies, Quickscope gives you the flexibility and performance to do both.
For detailed usage examples and function parameters, see the full function reference pages.