juper
Rust jupiter API client with compatible on-chain proxied jupiter swaps via AnyIx. Based on rust-jup-ag.
crates
juper_swap_api
juper_swap_api is a heavily rewritten fork of mvine's rust-jup-ag providing both async ahd blocking clients, as well as a simple route cache.
juper_swap_cpi
Warning: improper use of this, including the example below will lead to exploitable programs. This must be implemented with care, and developer(s) takes no responsibility for financial loss from any use of this
a lightweight version of jupiter-cpi intended for usage with AnyIx. It allows seamless integration of Jupiter's swap api and your programs, enabling things like vault compounding routed through jupiter, with on-chain access controls etc..
Usage
1) On-Chain Program
In your on-chian program define a function, and an instruction accounts object that looks like the following.
/// all accounts required by this instruction except thos listed in `JupiterSwap`
/// are provided via remaining_accounts, use with caution.
2) Off-Chain Invocation
For example of the off-chain instruction generation see crates/juper_swap_api