v4.0.18
Changes
- Add high-level
SimpleBuyParams/SimpleSellParamsAPIs withBuyAmount,SellAmount, andAccountPolicyto reduce low-level buy/sell parameter complexity. - Fix PumpFun V2 WSOL quote buys so native SOL input uses
buy_v2without requiring a separate WSOL balance on the hot path. - Keep hot-path WSOL quote transactions smaller by skipping unnecessary WSOL ATA create/close instructions when native SOL is used.
- Add transaction-size fallback that rebuilds eligible transactions without optional compute-budget instructions when packet size would exceed Solana limits.
- Document new parameters in English and Chinese README/reference docs, and add
examples/simple_trading.
Install
sol-trade-sdk = "4.0.18"Full Changelog: v4.0.17...v4.0.18