jupiter-cpi

Crates.iojupiter-cpi
lib.rsjupiter-cpi
version4.0.3
sourcesrc
created_at2022-07-26 09:40:04.759192
updated_at2023-04-13 01:27:53.111943
descriptionAnchor CPI client for the Jupiter program.
homepage
repositoryhttps://github.com/jup-ag/jupiter-cpi
max_upload_size
id633066
size60,762
Siong (siong1987)

documentation

README

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

Commit count: 26

cargo fmt