Skip to main content
Lightning API — One HTTP Call to Trade

PumpFun API

The Complete Pump.fun Developer SDK

Trade, launch, and snipe on Pump.fun with one API call. REST + WebSocket. Jito bundles. Lowest fees.

REST APIWebSocketJito Bundles0.25% FeeFree Data
JavaScript
// One HTTP call to trade on Pump.fun
const res = await fetch(
  'https://pumpdev.io/api/trade-lightning?api-key=YOUR_API_KEY',
  {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      action: 'buy',
      mint: 'TokenMintAddress',
      amount: 0.1,
    })
  }
);

const { signature } = await res.json();
Features

What the PumpFun API Offers

Lightning API

One HTTP call = done. No wallet setup, no signing, no RPC management needed.

Learn more →
💹

Trading API

Buy and sell pump.fun tokens programmatically. Supports slippage control, priority fees, and multiple RPC endpoints.

Learn more →
📊

Real-Time WebSocket

Stream new token launches, trades, and wallet activity. Perfect for snipers and analytics dashboards.

Learn more →
🚀

Token Creation

Launch pump.fun tokens with custom metadata, socials, and optional dev buy. Built-in IPFS upload.

Learn more →
💰

Fee Claiming

Automatically collect creator royalties from all your tokens. One transaction claims everything.

Learn more →
🔒

Client-Side Signing

Full security and control. We build the transaction, you sign and send it. Your keys never leave your machine.

Learn more →
Use Cases

What You Can Build with the PumpFun API

🤖

Trading Bots

Automated buy/sell with real-time data

🎯

Sniper Bots

Instant alerts + fast trade execution

🚀

Token Launchers

Create tokens with Jito bundles

📊

Analytics

Real-time dashboards and whale tracking

🔄

Copy Trading

Mirror wallet trades automatically

💰

Auto-Claim

Scheduled creator fee collection

Quick Start

Quick Start

Two ways to trade pump.fun tokens. Choose the one that fits your setup.

1Lightning API — Server-Side
JavaScript

We handle everything — signing, sending, and confirming. Just pass your trade params and API key.

// One HTTP call = done
const res = await fetch(
  'https://pumpdev.io/api/trade-lightning?api-key=YOUR_KEY',
  {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      action: 'buy',
      mint: 'TokenMintAddress',
      amount: 0.1,
      denominatedInSol: 'true',
    })
  }
);

const { signature } = await res.json();
console.log('Done!', signature);
One HTTP call. No wallet setup needed.View Docs →
2Trading API — Client-Side
JavaScript

We build the transaction, you sign it locally. Full control — your private keys never leave your machine.

// Client-side signing — your keys never leave your machine
const response = await fetch('https://pumpdev.io/api/trade-local', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    publicKey: wallet.publicKey.toBase58(),
    action: 'buy',
    mint: 'TokenMintAddress',
    amount: 0.1,              // Buy with 0.1 SOL
    denominatedInSol: 'true',
  })
});

// Sign locally (your keys stay safe)
const data = await response.arrayBuffer();
const tx = VersionedTransaction.deserialize(new Uint8Array(data));
tx.sign([wallet]);

// Send to Solana
const signature = await connection.sendTransaction(tx);
console.log('Buy executed:', signature);
Sign locally. Your keys never leave your machine.View Docs →
API Reference

PumpFun API Endpoints

POST /api/trade-local

Buy and sell tokens (client-side signing)

WSS /ws

Real-time trades and token launches

POST /api/create

Create new pump.fun tokens

POST /api/create-bundle

Jito bundle — atomic multi-buyer launch

POST /api/claim-account

Claim creator fees

POST /api/transfer

Transfer SOL between wallets

FAQ

Frequently Asked Questions

What is the PumpFun API?

The PumpFun API is the cheapest pumpfun api for developers. It provides a REST API and WebSocket SDK for interacting with pump.fun — buy and sell tokens, create new tokens with IPFS metadata, stream real-time trade data, and submit Jito bundles — all without managing wallets or RPC connections directly.

How do I buy pump.fun tokens programmatically with the pumpfun api?

Using the pumpfun api, send a POST request to /api/trade-local with your public key, token mint address, and SOL amount. The API returns a serialized transaction you sign locally and submit to Solana. For fully server-side trading with no wallet SDK required, use /api/trade-lightning — one call handles signing and broadcast.

How much does the PumpFun API cost?

The pumpfun api offers free WebSocket data streaming and token creation. Trades incur a 0.25% fee per transaction. There are no monthly subscription fees or API key charges to get started.

What is the Lightning API and how does it work?

The Lightning API (/api/trade-lightning) is a server-side trading endpoint. One HTTP call = done. You provide trade parameters and an API key — no Solana SDK or wallet setup needed on your end.

Does the pumpfun api support Jito bundles for token launches?

Yes. The pumpfun api's /api/create-bundle endpoint lets you launch a pump.fun token and include up to 4 buyer wallets in a single atomic Jito bundle, ensuring the dev buy and initial purchases land in the same block.

Is my private key safe when using the pumpfun api?

With the pumpfun api's client-side Trading endpoint, you sign transactions locally — your private keys never leave your machine. The Lightning API is designed for server-side bots where you control the runtime environment and key storage.

Get Started

Start Building with the PumpFun API

The complete pumpfun api and developer SDK for pump.fun. Join our community for support and announcements.