Quote Overview

The '@karrotcapital/spiderswap' package provides functions for retrieving quotes related to token swaps on the Solana blockchain. These functions allow developers to easily obtain and process quote data from the SpiderSwap API. Here is an overview of the two main functions related to quotes:

Functions

1. 'getQuoteRaw'

Fetches raw quote data from the SpiderSwap API. This function is essential for retrieving detailed quote information required for understanding potential swap outcomes.

Learn more about 'getQuoteRaw'

2. 'getQuote'

Simplifies the process of fetching quote data by converting the amount to lamports and slippage to basis points before making the API call. This function provides an easy-to-use interface for obtaining quote data.

Learn more about 'getQuote'

3. 'bulkQuote'

Retrieves multiple quotes from different liquidity providers, allowing you to compare rates and choose the best option for your token swap.

Learn more about 'bulkQuote'

These functions provide a robust toolkit for developers to interact with the SpiderSwap API and manage token swap quotes efficiently. For detailed documentation and examples, refer to the respective function pages linked above.

Last updated