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();
Live
API online — processing transactions on Solana
Performance

Built for Speed

Live latency from our production API, updated every 30 seconds.

Lightning Tradebuild · sign · send
Lightning Createbuild · sign · send
Local Tradebuild only
Local Createbuild only
updating latencynext refresh in 30s
last syncing
rolling 60-min avg · production api
Free WebSocket

Free Real-Time WebSocket API

Stream new token launches, track trades, monitor wallets, and snipe on Pump.fun and PumpSwap — all in real time. No API key, no fees.

import WebSocket from 'ws';

const ws = new WebSocket('wss://pumpdev.io/ws');
ws.on('open', () => ws.send(JSON.stringify({
  method: 'subscribeNewToken' 
})));

ws.on('message', (data) => console.log(JSON.parse(data.toString())));
Subscribe to new token launchesView Docs →
Live Feed
Connecting...
Waiting for events...
wss://pumpdev.io/wsWebSocket Docs →
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 metadata hosting.

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-lightning

One-call buy/sell — server signs + sends to Solana

POST /api/create-lightning

One-call token launch — metadata, sign, send

POST /api/bundle-lightning

Atomic Jito bundle — up to 4 txs, server-side

WSS /ws

Real-time token launches, trades, wallet tracking

POST /api/trade-local

Buy/sell transaction — client-side signing

POST /api/trade-bundle

Multi-wallet trades in one request

POST /api/create

Token creation — client-side signing

POST /api/create-bundle

Create + multi-buyer Jito bundle

POST /api/bundle

Unified local-sign Jito bundle

POST /api/claim-account

Claim creator fees from all tokens

POST /api/claim-cashback

Claim cashback rewards

POST /api/wallet/create

Generate wallet + Lightning API key

POST /api/transfer

Transfer SOL between wallets

POST /api/transfer-all

Transfer all SOL from wallet (minus fees)

FAQ

Frequently Asked Questions

What is the PumpFun API?

The PumpFun API is the most affordable way for developers to interact with pump.fun. It offers a REST API and WebSocket SDK to buy and sell tokens, create new tokens with hosted or 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 free token creation without a dev buy. Trades and dev buys 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.