Skip to main content
Users deposit assets into Earn vaults or supply them to Kamino’s lending markets as collateral to borrow against. Developers can integrate the same flows using the SDK’s composable methods for deposits, borrows, repayments, and withdrawals.
Using AI tools or building with LLMs? Use our llms.txt for a structured index of the docs, and skill.md for Kamino’s full API and SDK capability reference.

Integrate Kamino

Developers can integrate Kamino using the Typescript SDK or Kamino REST API.

REST API

REST API for vault lists, performance metrics, user positions, and transaction history.

TypeScript SDK

Compose on-chain transactions for deposits, borrows, repayments, and withdrawals.

Kamino Products

Borrow Markets

Earn by supplying assets

Earn Vaults

Earn interest on assets

Getting Started

Set up your development environment:
1

Install SDK

Install the K-Lend Typescript SDK and Solana Kit packages.
npm i @kamino-finance/klend-sdk @solana/kit
2

Setup the RPC (optional)

Use a private RPC for reliability. Public RPCs are often rate-limited and can cause transaction failures.
Multiple RPC providers are available. Helius is one option. @solana/kit is used for standardized RPC interactions with improved type safety and better handling of Solana transactions.
import { createSolanaRpc } from '@solana/kit';

const rpc = createSolanaRpc("https://api.mainnet-beta.solana.com");
3

Create or Import Wallet (optional)

Choose a method to create or import a wallet for signing transactions.
Alternatively, create a wallet using a browser wallet provider like Phantom.