INNER CODE UNIT · Rust

buy

0xfnzero/pumpfun-sdk · src/lib.rs:102

    pub async fn buy(
        &self,
        mint: Pubkey,
        amount_sol: u64,
        slippage_basis_points: Option<u64>,
    ) -> Result<(), anyhow::Error> {
        pumpfun::buy::buy(
            self.rpc.clone(),
            self.payer.clone(),
            mint,
            amount_sol,
            slippage_basis_points,
            self.priority_fee.clone(),
        ).await
    }

    /// Buy tokens using Jito
    pub async fn buy_with_tip(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…