Pump Trading

Buy and sell instruction building for Pump.fun — client-side and server-side trading patterns

plurigrid Updated 72 repo stars

File contents

Pump Trading

Buy/sell execution patterns for Pump.fun tokens.

Trit: +1 (PLUS — Generator)

Generates trading transactions.

Client-Side (Official SDK)

const instructions = await sdk.buyInstructions({
  global, bondingCurveAccountInfo, bondingCurve,
  associatedUserAccountInfo, mint, user: wallet.publicKey,
  solAmount, tokenAmount, slippageBps: 500,
});
// Sign and send yourself

Server-Side (PumpDev Lightning)

const res = await fetch('https://pumpdev.io/api/trade-lightning?api-key=KEY', {
  method: 'POST',
  body: JSON.stringify({ action: 'buy', mint: 'TOKEN_MINT', amount: 0.1,
    denominatedInSol: 'true', slippage: 5, priorityFee: 0.005 })
});

Sell Pattern

const instructions = await sdk.sellInstructions({
  global, bondingCurveAccountInfo, bondingCurve,
  associatedUserAccountInfo, mint, user: wallet.publicKey,
  tokenAmount, minSolOutput, slippageBps: 500,
});

GF(3) Triad

pump-bonding-curve (-1) ⊗ pump-token-launch (0) ⊗ pump-trading (+1) = 0 ✓

plurigrid/asi commit 8465b1ce84

Frequently asked questions

npx get-skill add plurigrid/pump-trading