Integrate Jupiter Earn / Borrow
TypeScript SDK
Compose on-chain flows for Jupiter Earn and Borrow. The SDK returns raw instructions so you can build transactions, sign, send, or use them in CPI and custom flows.
REST API
REST API for Earn: deposit, withdraw, mint, and redeem as unsigned base64 transactions or as raw instructions; read endpoints for vault tokens, user positions, and earnings. Borrow API coming soon.
Jupiter Lend Products
Jupiter Earn vaults
Deposit assets into Jupiter Earn vaults and generate yield.
Borrow markets
Borrow assets against collateral in Jupiter markets.
Advanced Integration
Flashloans
Borrow and repay within a single transaction with zero fees and no collateral.
Advanced Recipes
Multiply, unwind, vault swap, and other composite flows using flashloans.
CPI Integration
Call Jupiter Lend directly from your on-chain Solana program.
Getting Started
Set up your development environment:Install Dependencies
Add the Jupiter Lend TypeScript SDK and Solana web3.js to your dependencies.
Jupiter Lend SDK is built on top of @solana/web3.js for RPC communication and transaction construction.
Create or Import Wallet
Choose a method to create or import a wallet for signing transactions.
Alternatively, create a wallet using a browser wallet provider like Jupiter Wallet
Create Wallet with Solana CLI
Create Wallet with Solana CLI
Use the Solana CLI to generate a new keypair file.
Generate Keypair Programmatically
Generate Keypair Programmatically
Generate a new keypair programmatically using the Solana web3.js.
Load Wallet from Local Keypair File
Load Wallet from Local Keypair File
Import a wallet from an existing keypair file.
Import Private Key
Import Private Key
Import a private key exported from a browser wallet (base58-encoded string).
Never expose or commit private keys to version control. Use secure key management in production environments.
