# Introduction

## Welcome to Karrot Capital Documentation

Welcome to the official documentation for Karrot Capital! We are excited to introduce our community-developed package for the Spiderswap API. This package, created by Karrot Capital for the Spiderswap community, provides powerful tools for developers to interact seamlessly with the Spiderswap ecosystem on the Solana blockchain.

### About the Package

The `@karrotcapital/spiderswap` package was developed to simplify and enhance the process of integrating with Spiderswap's decentralized finance (DeFi) services. Our goal is to provide a robust, user-friendly toolset that meets the needs of both developers and businesses within the Spiderswap community.

#### Key Features

* **Token Swaps**: Effortlessly perform token swaps on the Solana blockchain with functions like `getSwapRaw` and `getSwap`.
* **Quote Retrieval**: Obtain detailed quotes for potential swaps using `getQuoteRaw` and `getQuote`.
* **Transaction Management**: Create and send transactions with ease through `createTransaction` and `sendTransaction` functions.

### Getting Started

#### Installation

To install the package, use npm:

```bash
npm install @karrotcapital/spiderswap
```

#### Overview of Functions

* [**getSwapRaw**](https://docs.karrot.capital/npm/swap-overview/getswapraw): Fetches raw swap data necessary for executing token swaps.
* [**getSwap**](https://docs.karrot.capital/npm/swap-overview/getswap): Simplifies the swap data retrieval process by handling conversions internally.
* [**createTransaction**](https://docs.karrot.capital/npm/swap-overview/createtransaction): Generates Solana transactions from swap data.
* [**sendTransaction**](https://docs.karrot.capital/npm/swap-overview/sendtransaction): Sends transactions to the blockchain with built-in retry and confirmation mechanisms.
* [**getQuoteRaw**](https://docs.karrot.capital/npm/quote-overview/getquoteraw): Fetches raw quote data for evaluating swap options.
* [**getQuote**](https://docs.karrot.capital/npm/quote-overview/getquote): Simplifies the quote retrieval process by handling conversions internally.

### Why Use This Package?

#### Community-Driven Development

This package is the result of collaborative efforts by Karrot Capital to support the Spiderswap community. It ensures that the tools provided are not only effective but also aligned with the real-world needs and use cases of developers.

#### Ease of Integration

The package is designed to be user-friendly, making it straightforward to integrate Spiderswap's functionalities into your applications. Whether you are performing token swaps or managing transactions, the provided functions simplify the process significantly.

#### Comprehensive Documentation

We offer detailed documentation for each function, complete with installation instructions, usage examples, and API references. This ensures that you have all the information needed to get started quickly and efficiently.

### Explore More

To delve deeper into the functionalities of our package, check out the detailed documentation pages linked above. Whether you're new to DeFi or an experienced developer, our package offers the tools you need to leverage the full potential of the Spiderswap API.

Thank you for choosing Karrot Capital's community package for Spiderswap. We are committed to supporting your development needs and helping you achieve seamless integration with the Solana blockchain. If you have any feedback or suggestions, please don't hesitate to reach out to us.

Start exploring our documentation and take your DeFi projects to the next level!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.karrot.capital/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
