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