INNER CODE UNIT · Rust
get_buy_price
0xfnzero/pumpfun-sdk · src/lib.rs:253
pub fn get_buy_price(&self, amount: u64, trade_info: &TradeInfo) -> u64 {
pumpfun::common::get_buy_price(amount, trade_info)
}
#[inline]
pub async fn transfer_sol(&self, payer: &Keypair, receive_wallet: &Pubkey, amount: u64) -> Result<(), anyhow::Error> {
pumpfun::common::transfer_sol(&self.rpc, payer, receive_wallet, amount).await
}
}