cURL
Route
Swap
GET
cURL
Get the best route and transaction for swapping between two tokens on Solana via Kamino’s swap aggregator.Documentation Index
Fetch the complete documentation index at: https://kamino.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Example
Import Dependencies
Configure and Initialize
Fetch Swap Transaction
Call the Kswap API to get the best route and a pre-built transaction. This example swaps 1 SOL to USDC with 50bps max slippage.Get instructions to repay debt of a klend reserveGet transaction to borrow liquidity from a klend reserve