For the complete documentation index, see llms.txt. This page is also available as Markdown.

@kumbaya_xyz/router-sdk

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

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.

Last updated