Overview
Kamino provides two integration options:| Option | Description |
|---|---|
| REST API | HTTPS endpoints for data and analytics. Language-agnostic. |
| TypeScript SDK | On-chain state reads and transaction building. TS/JS only. |
Core Differences
Comparison of API and SDK capabilities.| Capability | REST API | TypeScript SDK |
|---|---|---|
| Data queries (vaults, reserves) | Ready-made endpoints | On-chain reads |
| User position tracking | Rich endpoints | Real-time account lookup |
| Historical metrics & charts | Built-in history endpoints | Not available |
| Transaction building (deposit, borrow) | Unsigned transaction endpoints | Instruction builders |
| Vault creation | Not supported | Admin-level creation tools |
| Language/runtime | Any (via HTTP) | TypeScript/JavaScript only |
Data & Analytics
Retrieve vault, market, and historical performance data.Historical Performance
Historical Performance
REST APIFetch historical APY data for lending market reserves.TypeScript SDKNo history tracking. Developers must persist snapshots manually if needed.
On-Chain Transactions
Build and execute deposit, borrow, repay, and withdraw operations.Deposit Liquidity
Deposit Liquidity
REST API
Get unsigned Solana transactions to deposit liquidity into a Kamino Lend market reserve. Returns transaction that must be signed client-side.TypeScript SDK
Build and execute deposit transactions directly on-chain.
Get unsigned Solana transactions to deposit liquidity into a Kamino Lend market reserve. Returns transaction that must be signed client-side.
Build and execute deposit transactions directly on-chain.
Borrow & Repay
Borrow & Repay
REST API
Get unsigned transactions for borrow and repay operations.TypeScript SDK
Build borrow and repay transactions directly.
Get unsigned transactions for borrow and repay operations.
Build borrow and repay transactions directly.
Vault Creation
Vault Creation
TypeScript SDK
Recommended Usage Patterns
Choose the right tool for your use case.| Use Case | Best Tool |
|---|---|
| Display vault list with APR & TVL | REST API |
| Chart vault APY over 30 days | REST API |
| Fetch a user’s historical rewards | REST API |
| Build transactions for client signing | REST API |
| Execute transactions in backend | SDK |
| Create a new liquidity vault | SDK |
| Build in non-JS backend (e.g. Python) | API only |
| Require zero rate limits | SDK with private RPC |