Skip to content

v4.0.18

Choose a tag to compare

@github-actions github-actions released this 07 Jun 14:24

Changes

  • Add high-level SimpleBuyParams / SimpleSellParams APIs with BuyAmount, SellAmount, and AccountPolicy to reduce low-level buy/sell parameter complexity.
  • Fix PumpFun V2 WSOL quote buys so native SOL input uses buy_v2 without 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