Skip to main content

Module sdk

Module sdk 

Source

Re-exports§

pub use crate::math::QuoteError;

Structs§

CreateCoinParams
Inputs to PumpSdk::create_coin_instructions. Mint is the freshly generated keypair pubkey; the caller signs the resulting tx with that keypair plus the user.
PumpSdk
Offline instruction builders. No RPC calls are made and does not require RPC connection url.
Quote
Result of a quote computation. amount is the primary output (tokens for SOL-input buys; lamports for token-input buys and for sells). min_out and max_input are slippage-adjusted bounds where applicable. For AMM quote-in buys (buy_quote_amm_sol_in), max_input is the slippage-inflated quote ceiling (mirrors maxQuote in @pump-fun/pump-swap-sdk buyQuoteInput). For sells, min_out is the quote floor. For token-out buys, max_input is the max quote you may spend.
TradeTxParams
Inputs to PumpSdk::trade_tx_instructions. Quote mint is hard-wired to wSOL: sol_amount_threshold is the SOL ceiling on buy and the SOL floor on sell. Caller pre-computes amounts via the existing *_quote_* helpers.

Enums§

AmmQuoteSource
How PumpSdk::buy_quote_amm_sol_in, PumpSdk::buy_quote_amm_token_out, and PumpSdk::sell_quote_amm obtain reserves and pool identity.
TradeVenue
Routing for PumpSdk::trade_tx_instructions. The bonding-curve path uses buy_v2 / sell_v2; the AMM path targets the supplied pool with buy_amm / sell_amm.