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.

Integrate Kamino

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

Kamino Products

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.