Skip to content

jup-ag/jupiter-cpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jupiter-cpi

CPI helpers for the Jupiter program.

This crate is using anchor-gen to automatically generate a crate from the Jupiter Anchor JSON IDL.

How-to

let swap_ix = Instruction {
    program_id: jupiter_cpi::ID,
    accounts,
    data: jupiter_override::Route {
        swap_leg,
        in_amount: quote_response.in_amount,
        quoted_out_amount: 0,
        slippage_bps: 0,
        platform_fee_bps: 0,
    }
    .data(),
};

License

Apache 2.0

About

Anchor CPI client for the Jupiter program.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages