BTB Finance for agents

Protocols / Launchpad

Pump

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.

On-chainSOLANA3 contractsWebsite · Docs

get_protocol({ "protocol": "pump" })

Risks an agent should know

What an agent can do

launch-coinCreate a new pump.fun coin
Pump 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 curve
Pump 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 curve
Pump program sell_v3(amount, min_sol_output)
migrateGraduate a completed curve to PumpSwap
Pump program migrate() (permissionless) once BondingCurve.complete is true
swap-after-graduationTrade a graduated coin
PumpSwap buy_v2/sell_v2/buy_exact_quote_in_v2 on the canonical pool (index 0); or @pump-fun/pump-swap-sdk
add-liquidityLP on PumpSwap
PumpSwap deposit(lp_out, max_base_in, max_quote_in); remove with withdraw(lp_in, min_base_out, min_quote_out)
claim-creator-feesCollect creator fees
Pump collect_creator_fee_v2 (curve) and PumpSwap collect_coin_creator_fee (AMM)

Contracts

solana

ContractAddressKey functionsTry
Pump (bonding-curve program)
exchange
6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P
source
writecreate_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)
writecreate(name: string, symbol: string, uri: string, creator: pubkey)
writebuy(amount: u64, max_sol_cost: u64)
writesell(amount: u64, min_sol_output: u64)
writebuy_v3(amount: u64, max_sol_cost: u64, partial_fill?: OptionBool)
writebuy_exact_quote_in_v3(spendable_quote_in: u64, min_tokens_out: u64, partial_fill?: OptionBool)
writesell_v3(amount: u64, min_sol_output: u64)
writebuy_v2 / sell_v2 / buy_exact_quote_in_v2
+4 more via get_protocol
PumpSwap (Pump AMM program)
pool
pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA
source
writebuy(base_amount_out: u64, max_quote_amount_in: u64)
writesell(base_amount_in: u64, min_quote_amount_out: u64)
writebuy_v2 / buy_exact_quote_in_v2 / sell_v2
writemulti_hop_swap
writecreate_pool(index, creator, baseMint, quoteMint, baseIn, quoteIn)
writedeposit(pool, user, lpTokenOut, maxBaseIn, maxQuoteIn)
writewithdraw(pool, user, lpTokenIn, minBaseOut, minQuoteOut)
writecollect_coin_creator_fee()
+2 more via get_protocol
Pump Fees program
other
pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ
source
readget_fees
writecreate_fee_sharing_config
writeupdate_fee_shares_v2

Notes

Only Solana is confirmed by Pump's official docs (both programs: same ID on mainnet and devnet). DefiLlama lists more chains for 'pump', but no official Pump source found confirming other deployments, so they are left out. Official IDLs: https://github.com/pump-fun/pump-public-docs/tree/main/idl (pump.json, pump_amm.json, pump_fees.json); official TypeScript SDKs @pump-fun/pump-sdk and @pump-fun/pump-swap-sdk. PumpSwap create_pool/deposit/withdraw signatures are written as in PUMP_SWAP_README.md (accounts and args mixed); check pump_amm.json for exact arg names/types. Other addresses from the docs: Mayhem program MAyhSmzXzV1pTf7LsNkrNwkWKTo4ougAJ1PPg47MD4e; Pump Fees fee_config for the Pump program 8Wf5TiAheLUqBrKXeYg2JtAFFMWtKdG2BSFgqUcPVwTt and for PumpSwap 5PHirr8joyTMp9JMm6nW7hNDVyEYdkzDqazxPD7RaTjx. PumpSwap protocol fee recipients are listed in PUMP_SWAP_README.md. No official public REST API is documented; the PUMP token mint was not confirmed from an official Pump source and is omitted.

Sources

Researched 2026-11-24. Addresses are copied from the official sources above; check them before moving large amounts.