8 releases

Uses new Rust 2024

0.2.6 Dec 21, 2025
0.2.0 Dec 21, 2025
0.1.8 Dec 20, 2025
0.1.2 Oct 15, 2025

#60 in #trade


Used in solana-network-sdk

GPL-3.0 license

61KB
673 lines

Pump.fun SDK

Implemented functions related to interaction with Pump.fun.

License

简体中文 | English

Example

Parse the data structure of the bond curve.

#[cfg(test)]
mod tests {
    use crate::Pump;

    use super::*;
    use std::sync::Arc;

    #[tokio::test]
    async fn test() {
        let solana = Solana::new(solana_network_sdk::types::Mode::MAIN).unwrap();
        let pump = Pump::new(Arc::new(solana));
        let bond_curve = pump.create_bond_curve();
        let pool = bond_curve
            .get_bond_curve_pool_info("9RxTSGsTu3VdEGxRy6h3Jmk3hgP4Cfssw8SiPP4PRuKG")
            .await
            .unwrap();
        println!("Bond Curve Pool: {:?}", pool);
    }
}

Dependencies

~55–78MB
~1.5M SLoC