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

# @kumbaya\_xyz/router-sdk

Multi-pool route encoding for swaps. Builds the calldata you ultimately send to a router contract.

```bash
npm install @kumbaya_xyz/router-sdk
```

## Use it when

* You have a route (a sequence of pools) and need to turn it into calldata for `SwapRouter02` or `UniversalRouter`.
* You're aggregating routes from `smart-order-router` and need to execute them.

> *More reference coming soon.* See `@kumbaya_xyz/smart-order-router` for finding routes, and `@kumbaya_xyz/universal-router-sdk` for executing through UniversalRouter specifically.
