Protocols / Lending
Jupiter Lend
Jupiter's lending products on Solana. Earn lets an agent deposit a token to earn yield (mint, deposit, redeem, withdraw). Vaults (Borrow) lets an agent open a position, deposit collateral and borrow against it. Both have REST APIs that return ready-to-sign transactions.
On-chain + APISOLANA3 contractsWebsite · Docs
get_protocol({ "protocol": "jupiter-lend" })Risks an agent should know
- Borrowing can be liquidated when a vault position becomes undercollateralized. Liquidation takes collateral at a discount.
- Earn deposits are exposed to the strategies and lending markets behind the vault. Yield is not guaranteed and withdrawals can be limited by available liquidity.
- Oracle and price risk: vault values depend on oracle prices.
- Programs are upgradeable and the IDL can change. Build from the current IDL or API output, not from a cached copy.
- Keyless API access is rate limited. Production use needs an API key from the Jupiter developer portal.
What an agent can do
| earn-deposit | Deposit a token into Jupiter Earn POST https://api.jup.ag/lend/v1/earn/deposit with the wallet and amount (x-api-key header); sign the returned transaction and send it. Or call deposit_with_min_amount_out on the Earn program. |
| earn-withdraw | Withdraw a token from Jupiter Earn POST /lend/v1/earn/withdraw (or redeem with a share amount); sign and send the returned transaction. |
| vault-borrow | Open or change a borrow position in a Vaults (Borrow) vault init_position once, then operate(new_col, new_debt, ...) with signed amounts. Read the vault's exchange prices and ticks first. Build the call with the Jupiter Lend SDK or the official IDL; do not hand-encode the remaining accounts. |
Contracts
solana
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Jupiter Lend Earn program vault | jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9 source | writedeposit(assets: u64) writedeposit_with_min_amount_out(assets: u64, min_amount_out: u64) writemint(shares: u64) writemint_with_max_assets(shares: u64, max_assets: u64) writewithdraw(amount: u64) writewithdraw_with_max_shares_burn(amount: u64, max_shares_burn: u64) writeredeem(shares: u64) writeredeem_with_min_amount_out(shares: u64, min_amount_out: u64) | |
| Jupiter Lend Vaults program (Borrow) vault | jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi source | writeinit_position(vault_id: u16, next_position_id: u32) writeoperate(new_col: i128, new_debt: i128, transfer_type: Option<TransferType>, remaining_accounts_indices: bytes) writeoperate_dex(col_amounts: Option<OperateDexColAmounts>, debt_amounts: Option<OperateDexDebtAmounts>, transfer_type: Option<TransferType>, remaining_accounts_indices: bytes) writeoperate_perfect_dex(col_amounts: Option<OperatePerfectDexColAmounts>, debt_amounts: Option<OperatePerfectDexDebtAmounts>, transfer_type: Option<TransferType>, remaining_accounts_indices: bytes) writeliquidate(debt_amt: u64, col_per_unit_debt: u128, absorb: bool, transfer_type: Option<TransferType>, remaining_accounts_indices: bytes) writeliquidate_dex(debt_amt: u64, debt_amounts: Option<LiquidateDexDebtAmounts>, col_per_unit_debt: u128, col_amounts: Option<LiquidateDexColAmounts>, absorb: bool, transfer_type: Option<TransferType>, remaining_accounts_indices: bytes) writerebalance() readget_exchange_prices() +1 more via get_protocol | |
| Jupiter Lend Liquidity program pool | jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC source |
APIs
| Earn API: GET /earn/tokens auth: api-key | https://api.jup.ag/lend/v1/earn/tokens List the tokens that can be deposited into Earn, with their information. Send the x-api-key header from the Jupiter developer portal. |
| Earn API: deposit, withdraw, mint, redeem (transaction) auth: api-key | https://api.jup.ag/lend/v1/earn/deposit POST to get a ready transaction for a deposit. The same API has /earn/withdraw, /earn/mint and /earn/redeem. Matching /deposit-instructions, /withdraw-instructions, /mint-instructions and /redeem-instructions routes return raw instructions for CPI or composing. |
| Earn API: positions and earnings auth: api-key | https://api.jup.ag/lend/v1/earn/earnings GET earnings for a wallet: pass user and the position ids (for example ?user=<wallet>&positions=<id>). |
Notes
Program addresses are from Jupiter's official Lend program-addresses page. Other program ids on that page (Lending Rewards Rate Model jup7TthsMgcR9Y3L277b8Eo9uboVSmu1utkuXHNUKar, Oracle jupnw4B6Eqs7ft6rxpzYLJZYSnrpRgPcr589n5Kv4oc, Flashloan jupgfSgfuAXv4B6R2Uxu85Z1qdzgju79s6MfZekN6XS, AMM jupZ4m2GqUCJ5iueMfzQf8khFfH31d4XAQt3RzCT9Vd, Referral LrefWFcNXGnLxnQUdKmuJ1U3fUrFBdNkm6xCfVfWwQW) are left out as contracts because their instruction lists were not confirmed. The Liquidity program is listed with no keyFunctions; agents use Earn and Vaults. Instruction signatures come from the IDLs in the official jup-ag/jupiter-lend repository (target/idl). The Liquidity program is the shared liquidity layer that the other Lend programs call.
Sources
- https://api.llama.fi/protocol/jupiter-lend
- https://developers.jup.ag/docs/lend
- https://developers.jup.ag/docs/lend/architecture
- https://developers.jup.ag/docs/lend/program-addresses
- https://developers.jup.ag/docs/lend/idl-and-types
- https://github.com/jup-ag/jupiter-lend/tree/main/target/idl
- https://raw.githubusercontent.com/jup-ag/jupiter-lend/main/target/idl/lending.json
- https://raw.githubusercontent.com/jup-ag/jupiter-lend/main/target/idl/vaults.json
- https://developers.jup.ag/docs/lend/earn/api
- https://developers.jup.ag/docs/api-reference/lend/earn/tokens
- https://developers.jup.ag/docs/portal/rate-limits
- https://api.mainnet-beta.solana.com
Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.