> For the complete documentation index, see [llms.txt](https://docs.wardenswap.finance/warden/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wardenswap.finance/warden/wardenswap-sdk.md).

# WardenSwap SDK

- [Overview](https://docs.wardenswap.finance/warden/wardenswap-sdk/overview.md): The WardenSwap SDK is a Javascript/Typescript library that provides developers the seamless way of integrating the most sophisticated best rate AI swap into your application or DeFi with ease.
- [Getting Started](https://docs.wardenswap.finance/warden/wardenswap-sdk/getting-started.md): Hands-on tutorial to start using WardenSwap SDK for developers.
- [Advance Usage](https://docs.wardenswap.finance/warden/wardenswap-sdk/advance-usage.md): For even more use cases, let's see how to use it here.
- [Warden UI Kits (Beta)](https://docs.wardenswap.finance/warden/wardenswap-sdk/warden-ui-kits-beta.md): Ready-to-use UI kit to integrate WardenSwap UI into your website in just a minute!
- [Referral Link](https://docs.wardenswap.finance/warden/wardenswap-sdk/referral-link.md)
- [Testing](https://docs.wardenswap.finance/warden/wardenswap-sdk/testing.md)
- [Profit Sharing Program](https://docs.wardenswap.finance/warden/wardenswap-sdk/profit-sharing-program.md): Note: Currently available in BSC chain only
- [References](https://docs.wardenswap.finance/warden/wardenswap-sdk/references.md): Warden SDK API References
- [Class: WardenBestRate](https://docs.wardenswap.finance/warden/wardenswap-sdk/references/class-wardenbestrate.md): Warden Best Rate for getting quote and swapping.
- [Class: WardenPayloadCompressor](https://docs.wardenswap.finance/warden/wardenswap-sdk/references/class-wardenpayloadcompressor.md): A class for calldata compression to be used with WardenSwap on L2 chains


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.wardenswap.finance/warden/wardenswap-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
