Skip to main content

Overview

Build lending applications on Solana using the Kamino TypeScript SDK, the Rust interface crate, or the REST API. This guide covers everything from basic setup to advanced transaction building for deposit, borrow, repay, and withdraw operations.

Key Components of Borrow Integration

Lending Operations

Deposit collateral, borrow assets, repay debt, and withdraw - complete lending lifecycle management.

Loan Management

LTV ratios, health factors, obligation status and position monitoring for safe lending.

Market Analytics

APY tracking, utilization rates, reserve metrics from API and on-chain data.

Integration Options

Public API

Access market data, borrow rates, reserve liquidity, and obligation status via REST endpoints. Language-agnostic.

TypeScript SDK

On-chain reads and transaction building for deposit, borrow, repay, and withdraw. TS/JS only.

Rust Interface Crate

Lightweight instruction builder for Rust bots and on-chain CPI.

Deposit

View Code
For the full deposit example, including transaction sending and confirmation, check out Deposit Operations.

Withdraw

View Code
For the full withdraw example, including transaction sending and confirmation, check out Withdraw Operations.

Key Data Structures

Obligation
View Full TypeScript Obligation

Fetch Market Data via the API

Access market metrics and performance data through REST endpoints.

Smart contract repository

Explore the on-chain program source code and documentation.

NPM SDK package

Install the TypeScript SDK to integrate borrowing and lending operations.

Rust Interface Crate

Lightweight Rust instruction builder for Kamino Lending operations.

More Borrow tutorials

Step-by-step guides for building with Kamino lending markets.