Skip to main content

wp_solana_jupiter_lend_sdk/
lib.rs

1//! Jupiter Lend read-only SDK.
2//!
3//! High-level async readers for the Jupiter Lend protocol, mirroring
4//! the public surface of `@jup-ag/lend-read`. Wraps the codama-generated
5//! `*-client` crates and the pure-math `lend-core` crate behind an
6//! `Arc<solana_client::nonblocking::rpc_client::RpcClient>`.
7
8pub mod client;
9pub mod error;
10pub mod fetch;
11pub mod lending;
12pub mod lending_rewards;
13pub mod liquidity;
14pub mod vault;
15
16pub use client::Client;
17pub use error::{AccountNotFoundError, DecodeError, Result, SdkError};
18pub use lending::LendingReader as Lending;
19pub use lending_rewards::LendingRewardsRateModelReader as LendingRewards;
20pub use liquidity::LiquidityReader as Liquidity;
21pub use vault::VaultReader as Vault;
22
23/// Default mainnet RPC URL.
24pub const DEFAULT_RPC_URL: &str = "https://api.mainnet-beta.solana.com";