Skip to main content

Program IDs

JustPump consists of two main programs for token launching and trading.
Launchpad Program:
AMM Program:
Mainnet deployment pending. Use devnet for development and testing.

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 characters
  • symbol (string): Token symbol, max 10 characters
  • uri (string): Metadata URI (JSON), max 200 characters
  • vanity_nonce (u64): Nonce for vanity mint address (must result in ‘JP’ prefix)
Key Accounts:
  • creator (signer, writable): Your wallet
  • mint (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]
Fees: Only transaction fee (~0.01 SOL), no creation fee

Example

Token metadata should follow Metaplex standards. Upload JSON to Arweave or IPFS first.

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)
Key Accounts:
  • buyer (signer, writable): Your wallet
  • mint: Token mint address
  • coin (PDA): Derive with ["coin", mint]
  • bonding_curve (PDA): Derive with ["bonding-curve", mint]
  • buyer_quote: Your WSOL token account
  • buyer_token: Your token account for the mint
Fees: 1.3% total (60 BPS platform, 50 BPS creator, 20 BPS insurance)

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
Key Accounts:
  • seller (signer, writable): Your wallet
  • mint: Token mint address
  • coin (PDA): Derive with ["coin", mint]
  • bonding_curve (PDA): Derive with ["bonding-curve", mint]
  • seller_token: Your token account
  • seller_quote: Your WSOL token account
Constraint: tokens_in <= (bonding_curve.tokens_sold * 1000) / 10000 (10% max)

Example

Selling more than 10% of circulating supply will fail. Split large sells into multiple transactions.

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)
Key Accounts:
  • trader (signer, writable): Your wallet
  • pool (PDA): Derive with ["pool", base_mint, quote_mint]
  • trader_quote: Your WSOL account
  • trader_base: Your token account

Instruction: swap_base_for_quote (Token → SOL)

Parameters:
  • base_in (u64): Amount of tokens to swap
  • min_quote_out (u64): Minimum SOL to receive (slippage protection)
Key Accounts: Same as above, reversed Fees: 1.3% total (same as bonding curve)

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 support

SPL Token

Program ID: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DAUsed For: WSOL (quote token) and LP tokensStandard: Original SPL Token program

Common 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: