INNER CODE UNIT · Rust

buy_with_tip

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

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

    /// Sell tokens

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…