Pump.fun SDK
Implemented functions related to interaction with Pump.fun.
简体中文 | 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);
}
}