BTB
/

Pump

Launchpadwebsite
pump.fun memecoin launchpad on Solana. An agent can create coins on the Pump bonding-curve program, buy and sell coins on their bonding curve, migrate completed curves, and trade or provide liquidity on the PumpSwap AMM after migration.

What you can do

launch-coinCreate a new pump.fun coinPump program create_v2(name, symbol, uri, creator, is_mayhem_mode=false); or @pump-fun/pump-sdk helpers
buy-on-curveBuy a coin still on its bonding curvePump program buy_v3(amount, max_sol_cost) or buy_exact_quote_in_v3(spendable_quote_in, min_tokens_out); check BondingCurve.complete is false first
sell-on-curveSell a coin on its bonding curvePump program sell_v3(amount, min_sol_output)
migrateGraduate a completed curve to PumpSwapPump program migrate() (permissionless) once BondingCurve.complete is true
swap-after-graduationTrade a graduated coinPumpSwap buy_v2/sell_v2/buy_exact_quote_in_v2 on the canonical pool (index 0); or @pump-fun/pump-swap-sdk
add-liquidityLP on PumpSwapPumpSwap deposit(lp_out, max_base_in, max_quote_in); remove with withdraw(lp_in, min_base_out, min_quote_out)
claim-creator-feesCollect creator feesPump collect_creator_fee_v2 (curve) and PumpSwap collect_coin_creator_fee (AMM)
Memecoins: extreme volatility, most coins go to ~zero; no vetting of creators.
Bonding-curve buys/sells pay a 100 bps base fee per the program README; PumpSwap charges 20 bps LP + 5 bps protocol plus a creator fee; actual fee tiers are dynamic (read via Pump Fees fee_config / get_fees or the SDK's computeFeesBps).
Coins created with create_v2 are Token-2022 mints; use the Token-2022 program (TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb) for their token accounts.
Programs are upgradeable by Pump; account layouts gain appended fields over time (missing trailing fields read as 0/false), and required accounts on buy/sell have changed before (e.g. fee accounts became mandatory Sept 2025). Build from the latest IDL/SDK.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
Pump (bonding-curve program)exchange on solana6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P
write create_v2(name: string, symbol: string, uri: string, creator: pubkey, is_mayhem_mode: bool, is_cashback_enabled?: bool, creator_fee_bps?: u16, is_holder_reward?: bool)
Create a new coin as a Token-2022 mint (6 decimals) with its bonding curve. name <= 32 chars, symbol <= 13, uri <= 200. is_cashback_enabled is deprecated and must be false; creator_fee_bps applies only to custom-pair coins; trailing optional args may be omitted. Payer pays rent in SOL.
write create(name: string, symbol: string, uri: string, creator: pubkey)
Legacy coin creation (SPL Token + Metaplex metadata). creator is added to the metadata creators array and need not sign. Prefer create_v2.
write buy(amount: u64, max_sol_cost: u64)
Buy exactly `amount` coins (base units) from the bonding curve, spending at most max_sol_cost lamports. Legacy instruction, still works.
write sell(amount: u64, min_sol_output: u64)
Sell exactly `amount` coins to the bonding curve for at least min_sol_output lamports. Legacy instruction, still works.
write buy_v3(amount: u64, max_sol_cost: u64, partial_fill?: OptionBool)
Newest buy: exact base amount out, max quote in (fees included). Supports non-SOL quote mints. partial_fill only applies to mayhem coins. Fails on cashback coins (use v2).
write buy_exact_quote_in_v3(spendable_quote_in: u64, min_tokens_out: u64, partial_fill?: OptionBool)
Spend an exact quote amount (fees included) for at least min_tokens_out coins.
write sell_v3(amount: u64, min_sol_output: u64)
Newest sell: exact base amount in, minimum quote out after fees.
write buy_v2 / sell_v2 / buy_exact_quote_in_v2
v2 trade instructions; still supported and required for cashback coins (v3 rejects them with CashbackCoinNotSupported).
write migrate()
Permissionless, idempotent: move a completed bonding curve (real_token_reserves == 0) into a PumpSwap pool (index 0); LP tokens are burned.
write collect_creator_fee_v2()
Permissionless: sweep the creator vault (PDA ["creator-vault", creator]) to the creator. Not usable when the creator vault has moved to a Pump Fees sharing_config.
read Global account 4wTV1YmiEkRvAtNtsSGPtUrqRYQMe5SKy2uB4Jjaxnjf (PDA ["global"])
Read global config: fee recipients, initial curve parameters, fee bps, enable_migrate, pool_migration_fee.
read BondingCurve account (PDA ["bonding-curve", mint])
Read virtual/real token and SOL reserves, token_total_supply, complete flag, creator, quote_mint, is_mayhem_mode. Used to quote prices off-chain (Uniswap-V2-style constant product on virtual reserves).
PumpSwap (Pump AMM program)pool on solanapAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA
write buy(base_amount_out: u64, max_quote_amount_in: u64)
Buy exactly base_amount_out base tokens from a pool, paying at most max_quote_amount_in quote. Fees: 20 bps LP + 5 bps protocol (plus creator fee where applicable).
write sell(base_amount_in: u64, min_quote_amount_out: u64)
Sell exactly base_amount_in base tokens for at least min_quote_amount_out quote.
write buy_v2 / buy_exact_quote_in_v2 / sell_v2
v2 trade instructions (same arguments; buy_exact_quote_in_v2(spendable_quote_in, min_base_amount_out)). v1 keeps working; cashback-coin pools must use v1.
write multi_hop_swap
Multi-hop swap across PumpSwap pools; see docs/instructions/MULTI_HOP_SWAP.md for accounts and args.
write create_pool(index, creator, baseMint, quoteMint, baseIn, quoteIn)
Create a pool for (base_mint, quote_mint); pool PDA from (index, creator, base_mint, quote_mint). Initial amounts set the price; creator receives LP tokens.
write deposit(pool, user, lpTokenOut, maxBaseIn, maxQuoteIn)
Mint exactly lp_token_amount_out LP tokens spending at most the given base/quote. No fee.
write withdraw(pool, user, lpTokenIn, minBaseOut, minQuoteOut)
Burn LP tokens for at least the given base/quote. No fee.
write collect_coin_creator_fee()
Permissionless: sweep the coin creator vault ATA (authority PDA ["creator_vault", coin_creator]) to the creator's token account.
read GlobalConfig account ADyA8hdefvWN2dbGGWFotbzWxrAvLW83WG6QCVXvJKqw (PDA ["global_config"])
Read fee config and the 8 protocol_fee_recipients (pick one at random per buy/sell).
read Pool account
Read pool mints, vaults, lp_supply, coin_creator, virtual_quote_reserves. Effective quote reserves = quote vault balance + virtual_quote_reserves.
Pump Fees programother on solanapfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ
read get_fees
Compute the fee tier (protocol / LP / creator bps) that applies to a trade.
write create_fee_sharing_config
Set up creator fee sharing for a coin (moves creator fees to a sharing_config); see docs/instructions/CREATOR_FEE_SHARING.md.
write update_fee_shares_v2
Update the shareholders/shares of a fee sharing config (sharing authority only).