The @quickscope/sdk
package offers powerful quote retrieval functions designed to help you compare swap options across Solana's top liquidity providers. Whether you're optimizing for price, targeting specific protocols, or displaying all available paths, these functions give you full control over quote logic.
Functions
1. getQuoteAll
getQuoteAll
Fetches quotes from all available liquidity providers for a given token pair and amount. This function is perfect for displaying multiple options or performing advanced routing comparisons.
2. getQuoteBest
getQuoteBest
Returns the best available quote across all providers based on output amount. It simplifies routing by abstracting away quote comparisons and returning the most cost-effective path.
3. getQuoteCustom
getQuoteCustom
Fetches a quote from a specific provider, program ID, or liquidity pool. Ideal for developers looking to build custom routing logic or manually target a specific venue.
Learn more aboutgetQuoteCustom
Together, these quote functions form the core of Quickscope’s smart routing system. They allow developers to balance simplicity and control while integrating powerful swap decision logic into their applications.
For full examples, parameter details, and integration tips, check out the individual function documentation.