The SDK generates transaction instructions that you can add to your own transaction flow.
Getting Started
Import the required packages for Solana RPC and Jupiter Earn SDK operations.Import Dependencies
Import the packages you need for Solana RPC and Jupiter Lend (Earn) SDK operations.
Complete Flow
This example builds, signs, and sends a deposit transaction.Import Dependencies
Import the packages you need for Solana RPC and Jupiter Lend (Earn) SDK operations.
Set up connection and deposit parameters
Set your RPC, signer, asset mint, and deposit amount.If your signer is stored as a local JSON keypair file, you can load it using the helper function below.Then initialise your signer:
Build Deposit Instructions
Build a transaction from the deposit instructions, set blockhash and fee payer, then sign with the user keypair and send the transaction.
