Expand description
Rust SDK for the pump and pump_amm Solana programs.
Enable the default client feature for [AsyncPumpClient] and the full
solana-sdk / solana-client dependency stack. For on-chain CPI usage only,
depend with default-features = false — instruction helpers use
solana-program and avoid RPC crates.
Re-exports§
pub use accounts::decode;pub use accounts::decode_padded;pub use errors::PumpClientError;pub use errors::Result;pub use sdk::AmmQuoteSource;pub use sdk::CreateCoinParams;pub use sdk::PumpSdk;pub use sdk::TradeTxParams;pub use sdk::TradeVenue;
Modules§
- accounts
- Account decoders for the pump and pump_amm programs.
- constants
- Program IDs and seed constants for the
pumpandpump_ammprograms. - errors
- Error type for the offline
PumpSdkand the asyncAsyncPumpClient. - fixtures
- Pump base mints we ship as cloned fixtures for local-validator tests.
- math
- Quote math primitives. Mirrors
@pump-fun/pump-sdk-internal(bonding curve) and@pump-fun/pump-swap-sdk(AMM) so Rust callers can compute quotes locally without round-tripping through JS or the chain. - pda
- PDA derivations for the
pumpandpump_ammprograms. - pump
- Generated external program declaration of program
pump. - pump_
amm - Generated external program declaration of program
pump_amm. - sdk
- state
- token
- SPL Token / Token-2022 instruction helpers used by the SDK.