pumpfun-sdk-idl
Pump.fun IDL snapshots and generated Anchor-style instruction builders for Rust.
Features
- Pinned IDL — Minimal JSON IDL snapshots for Pump bonding curve and PumpSwap AMM
- Generated types — Rust modules with
Accounts,Args,build_ix()per instruction - Discriminator helpers — Anchor
global:<name>discriminator computation - Embedded IDL —
include_str!for IDL JSON at compile time
Installation
[]
= "0.1"
IDL Coverage
| IDL | Instructions |
|---|---|
pump_bonding_curve_min |
create_v2 |
pump_bonding_curve_trade_min |
buy, sell |
pump_amm_min |
buy, sell |
Usage
Generated instruction builders
use create_v2;
use ;
use ;
Embedded IDL JSON
use ;
let json = pump_bonding_curve_min_idl_json;
// pump_bonding_curve_trade_min_idl_json via pumpfun_sdk_idl::embedded
IDL parsing
use ;
let idl: Idl = from_str?;
Regenerating types
When the Pump program IDL changes, regenerate with idl-gen:
Dependencies
serde,serde_json,borsh,sha2,solana-sdk
License
MIT OR Apache-2.0