6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P. Use this reference when building or decoding its instructions. It covers the accounts, discriminators, and buy/sell layout. For post-graduation trades, use the PumpSwap program reference.
Prefer not to hand-build instructions? Raptor Swap API routes buys and sells across Pump.fun bonding curves and PumpSwap automatically.
Official program IDs
Copy the program ID exactly. Base58 addresses are case-sensitive; the
r after 6EF8 is lowercase.
Well-known pdas
Solana Tracker market filters:
pumpfun (bonding curve), pumpfun-amm (graduated / PumpSwap).
Anchor IDL
Download the official Anchor IDL (mirrored from pump-fun/pump-public-docs):- JSON IDL: /idl/pump.json
- Upstream: idl/pump.json
Program or BorshInstructionCoder, or use the discriminators below when parsing raw instructions.
Instruction discriminators
Anchor discriminators are the first 8 bytes ofsha256("global:<instruction_name>"). Match these when parsing transactions or building instructions manually.
buy / sell on the AMM reuse the same sighashes — always check the program ID (6EF8rrecth… vs pAMMBay…) when classifying trades.
On mainnet, many curve swaps use buy_exact_sol_in (0x38fc74089edfcd5f) rather than classic buy. Parsers should handle both.
Detect buy vs sell in Rust
buy instruction
Args
Accounts
Read
fee_recipient (and the fee_recipients array) from the global account. Pass fee_program = pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ.
sell instruction
Args
Accounts
create instruction
Args: name: string, symbol: string, uri: string, creator: pubkeyDiscriminator:
[24, 30, 200, 40, 5, 28, 7, 119]
Newer launches often use create_v2 (Token-2022 / Mayhem / cashback fields). Prefer matching live transactions or the IDL when integrating creation flows.
Buy / sell with @solana/web3.js
Encode the Anchor discriminator, then little-endian u64 args. OptionBool is a single byte (0 or 1).
Easier path: Raptor swap API
Stream & index with Solana tracker
Choose the interface that matches the level of data you need:
Docs:
- Pump.fun & bonding curves — lifecycle with Data API + Datastream
- gRPC buy/sell detection — decode with the IDL
- gRPC account streaming — bonding curve state
- Pump.fun AMM program — PumpSwap
buy/sell
PumpSwap program
PumpSwap program ID, IDL, and buy/sell discriminators.
Launches and graduations
Discover, track curves, graduations, and swap via Solana Tracker.
Yellowstone buy/sell
Real-time instruction parsing over gRPC.
Raptor Swap
Execute Pump.fun and PumpSwap swaps without building IXs.