Three releases stabilizing PumpFun routing and simplifying the buy/sell API
By RepoJournal , from @latent-9's public GitHub activity
Backfilled
Recoordinate shipped three versions of sol-trade-sdk on Monday, adding high-level trading APIs and refining how the SDK routes between PumpFun V1 and V2 based on quote mint type.
In v4.0.18 [1], the SDK gained `SimpleBuyParams` and `SimpleSellParams` APIs designed to reduce the complexity of constructing buy and sell transactions. The release also fixed PumpFun V2 WSOL quote buys so native SOL input uses `buy_v2` without requiring a separate WSOL balance on the hot path, and optimized transaction size by skipping unnecessary WSOL ATA create and close instructions when native SOL is used.
v4.0.19 [2] extended the simple params with chainable `.durable_nonce()` builders and re-exported `fetch_nonce_info` and `DurableNonceInfo` from the crate root for easier access. The release added bilingual documentation and examples demonstrating durable nonce construction, along with tests proving the simple params clear `recent_blockhash` and pass durable nonce into lower-level APIs.
v4.0.20 [3] refined PumpFun routing logic to prefer V1 instructions for native SOL-paired curves when the quote mint is default, Solscan SOL, or WSOL sentinel, selecting V2 only for non-native quote mints or explicit WSOL settlement. The release also preserved compute budget and relay tip semantics when reporting oversized transactions, and updated both English and Chinese documentation to reflect the new routing strategy.
One email a day. Unsubscribe in one click.
A short briefing every day latent-9 ships something — in about 3 minutes.
One email a day. Unsubscribe in one click. Read a past issue →
References
- [1] v4.0.18 ↗ 0xfnzero/sol-trade-sdk
- [2] v4.0.19 ↗ 0xfnzero/sol-trade-sdk
- [3] sol-trade-sdk v4.0.20 ↗ 0xfnzero/sol-trade-sdk