INNER CODE UNIT · Rust
sell_by_percent
0xfnzero/pumpfun-sdk · src/lib.rs:152
pub async fn sell_by_percent(
&self,
mint: Pubkey,
percent: u64,
) -> Result<(), anyhow::Error> {
pumpfun::sell::sell_by_percent(
self.rpc.clone(),
self.payer.clone(),
mint.clone(),
percent,
self.priority_fee.clone(),
).await
}
pub async fn sell_by_percent_with_tip(
&self,
mint: Pubkey,
percent: u64,