Rust support is currently centered on CPI and on-chain composition rather than a high-level off-chain client like the TypeScript SDK.Documentation Index
Fetch the complete documentation index at: https://docs.ranger.finance/llms.txt
Use this file to discover all available pages before exploring further.
When To Use Rust
Use Rust when you are:- composing Voltr inside another on-chain Solana program
- building program-owned deposit or withdrawal flows
- needing direct control over account metas and instruction data
@voltr/vault-sdk with @solana/kit.
Current Rust Surface
The practical Rust integration surface today is the CPI documentation and reference snippets:- CPI Integration Overview
- Deposit CPI
- Request Withdraw CPI
- Withdraw CPI
- Instant Withdraw CPI
- Cancel Withdraw CPI
Recommended Split
- off-chain bots and frontends: TypeScript SDK v2
- on-chain composition: Rust CPI wrappers around Voltr instructions
- mixed systems: keep Rust responsible for CPI boundaries and TypeScript responsible for operational tooling
CPI Reference Repository
Thevoltr-vault-cpi reference repository is the best starting point for Rust integrations. Use it alongside the Mintlify CPI pages when implementing your own wrappers.
Notes
- Do not assume older Anchor helper code matches the current SDK surface.
- Keep PDA derivation and account ordering identical to the documented CPI flows.
- If a dedicated published Rust client is introduced later, this page should expand to cover crate installation and direct examples.