Skip to main content
Use platform: "pump_swap" for PumpSwap trading.

Methods

TypePurpose
buyBuy through the canonical PumpSwap pool for a mint.
sellSell through the canonical PumpSwap pool for a mint.

Buy

Required fields:
FieldTypeNotes
rpcsstring[]Solana RPC lanes.
identifierstringRequest id.
mintstringToken mint.
buy_amtnumberQuote amount in base units.
min_tokens_outnumber0 is coerced to 1 by the backend.
priority_feenumberLamports.
buying_walletstringBuyer wallet.
creatorstringCreator wallet, required by the instruction builder.
is_mayhem_modebooleanOptional.
cashbackbooleanOptional.
Example:
{
  "platform": "pump_swap",
  "type": "buy",
  "rpcs": ["standard"],
  "identifier": "pumpswap_buy_1",
  "mint": "TOKEN_MINT",
  "buy_amt": 50000000,
  "min_tokens_out": 1,
  "priority_fee": 1000000,
  "buying_wallet": "SOLANA_WALLET",
  "creator": "CREATOR_WALLET",
  "is_mayhem_mode": false,
  "cashback": false
}

Sell

FieldType
rpcsstring[]
identifierstring
mintstring
sell_amtnumber
priority_feenumber
selling_walletstring
min_outnumber
creatorstring
is_mayhem_modeboolean
cashbackboolean
Example:
{
  "platform": "pump_swap",
  "type": "sell",
  "rpcs": ["standard"],
  "identifier": "pumpswap_sell_1",
  "mint": "TOKEN_MINT",
  "sell_amt": 250000000,
  "priority_fee": 1000000,
  "selling_wallet": "SOLANA_WALLET",
  "min_out": 0,
  "creator": "CREATOR_WALLET",
  "is_mayhem_mode": false,
  "cashback": false
}