Program IDs
JustPump consists of two main programs for token launching and trading.- Mainnet (Coming Soon)
- Devnet
Launchpad Program:AMM Program:
Quick Start
What You Can Do
Create Tokens
Launch new tokens with bonding curves
Buy/Sell
Trade on bonding curves before graduation
Swap
Trade graduated tokens on JustSwap AMM
Query State
Read token info, prices, and liquidity
Creating a Token
Create a new token with bonding curve trading enabled immediately.Instruction: create_coin
Parameters:
name(string): Token name, max 32 characterssymbol(string): Token symbol, max 10 charactersuri(string): Metadata URI (JSON), max 200 charactersvanity_nonce(u64): Nonce for vanity mint address (must result in ‘JP’ prefix)
creator(signer, writable): Your walletmint(PDA): Token mint address - derive with["mint", creator, vanity_nonce]coin(PDA): Coin metadata - derive with["coin", mint]bonding_curve(PDA): Bonding curve state - derive with["bonding-curve", mint]
Example
Buying Tokens (Bonding Curve)
Buy tokens on the bonding curve before graduation.Instruction: buy_exact_quote_in
Parameters:
spendable_quote_in(u64): Maximum SOL to spend (in lamports)min_tokens_out(u64): Minimum tokens to receive (slippage protection)
buyer(signer, writable): Your walletmint: Token mint addresscoin(PDA): Derive with["coin", mint]bonding_curve(PDA): Derive with["bonding-curve", mint]buyer_quote: Your WSOL token accountbuyer_token: Your token account for the mint
Example
You need to wrap SOL to WSOL first using
SystemProgram.transfer +
Token.syncNative.Selling Tokens (Bonding Curve)
Sell tokens on the bonding curve. Limited to 10% of circulating supply per transaction.Instruction: sell_on_curve
Parameters:
tokens_in(u64): Amount of tokens to sell
seller(signer, writable): Your walletmint: Token mint addresscoin(PDA): Derive with["coin", mint]bonding_curve(PDA): Derive with["bonding-curve", mint]seller_token: Your token accountseller_quote: Your WSOL token account
tokens_in <= (bonding_curve.tokens_sold * 1000) / 10000 (10% max)
Example
Swapping on JustSwap (AMM)
Trade graduated tokens on the constant product AMM.Instruction: swap_quote_for_base (SOL → Token)
Parameters:
quote_in(u64): Amount of SOL to swap (in lamports)min_base_out(u64): Minimum tokens to receive (slippage protection)
trader(signer, writable): Your walletpool(PDA): Derive with["pool", base_mint, quote_mint]trader_quote: Your WSOL accounttrader_base: Your token account
Instruction: swap_base_for_quote (Token → SOL)
Parameters:
base_in(u64): Amount of tokens to swapmin_quote_out(u64): Minimum SOL to receive (slippage protection)
Example
PDA Derivations
All Program Derived Addresses use deterministic seeds.Launchpad Program PDAs
AMM Program PDAs
Reading State
Fetch on-chain data to display prices, liquidity, and token info.Get Token Info
Get Bonding Curve State
Get Pool State
Token Programs
Token-2022
Program ID:
TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEbUsed For: All user-created tokensFeatures: Metadata Extension supportSPL Token
Program ID:
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DAUsed For: WSOL (quote token) and LP tokensStandard: Original SPL Token programCommon Errors
Helper Functions
Calculate Bonding Curve Output
Calculate AMM Output
Resources
Download IDLs
Get the latest IDL files
Example Integration
See full integration examples
Anchor Docs
Learn about Anchor framework
Solana Cookbook
Solana development patterns
Support
For developer support:- Technical questions: dev@justpump.fun
- General questions: FAQ
- Bug reports: GitHub Issues